mysql to sqlite

Reply

Join Date: Sep 2009
Posts: 50
Reputation: lukerobi is an unknown quantity at this point 
Solved Threads: 16
lukerobi lukerobi is offline Offline
Junior Poster in Training

mysql to sqlite

 
0
  #1
Oct 18th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the Database Design Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC