944,081 Members | Top Members by Rank

Ad:
Oct 18th, 2009
0

mysql to sqlite

Expand Post »
Could anyone lend some help?

Trying to figure out how to do this in SQLite3

(this is mySQL)

CREATE TABLE car_contacts (
  id INTEGER NOT NULL AUTO_INCREMENT,
  carriers_id CHAR NOT NULL,
  name CHAR NULL,
  phone CHAR NULL,
  phone_ext INTEGER NULL,
  fax CHAR NULL,
  email CHAR NULL,
  PRIMARY KEY(id, carriers_id),
  INDEX car_contacts_FKIndex1(carriers_id),
  FOREIGN KEY(carriers_id)
    REFERENCES carriers(id)
      ON DELETE NO ACTION
      ON UPDATE NO ACTION
);
any help would be greatly apreciated!
Last edited by lukerobi; Oct 18th, 2009 at 5:13 pm.
Similar Threads
Reputation Points: 14
Solved Threads: 16
Junior Poster in Training
lukerobi is offline Offline
50 posts
since Sep 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Database Design Forum Timeline: Basic DBMS Concept
Next Thread in Database Design Forum Timeline: "Claim a slot" database design





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC