MySQL Forums
Forum List  »  Newbie

Re: Query Help
Posted by: Marc Weymouth
Date: November 24, 2017 01:40PM

This is what I have so far


query="
CREATE TABLE X
(ID INTEGER PRIMARY KEY),
X1 CHAR(20),
X2 CHAR(20),
FOREIGN KEY (X1) REFERENCES Y(X)
FOREIGN KEY (X2) REFERENCES Y(X)
;
CREATE TABLE Y
(ID INTEGER PRIMARY KEY),
X CHAR(20),
D CHAR(20),
;


"
sqldf(query)

Options: ReplyQuote


Subject
Written By
Posted
November 24, 2017 11:01AM
Re: Query Help
November 24, 2017 01:40PM
November 24, 2017 03:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.