| | |
create table problems
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Apr 2009
Posts: 56
Reputation:
Solved Threads: 11
can someone help me identify the syntax error with this code
MySQL Syntax (Toggle Plain Text)
CREATE TABLE IF NOT EXISTS Persons ( id_number VARCHAR(13) NOT NULL , name VARCHAR(45) NOT NULL , name_2 VARCHAR(45) NULL , name_3 VARCHAR(45) NULL , surname VARCHAR(45) NOT NULL , date_created DATE , date_modified DATE , PRIMARY KEY (id_number) , INDEX per_id_fk (id_number ASC) , INDEX per_stat_fk (id_number ASC) , CONSTRAINT per_id_fk FOREIGN KEY (id_number ) REFERENCES Person_Image (id_number ) ON DELETE CASCADE ON UPDATE CASCADE , CONSTRAINT per_stat_fk FOREIGN KEY (id_number ) REFERENCES Current_Status (id_number ) ON DELETE CASCADE ON UPDATE CASCADE )
Last edited by cscgal; Oct 3rd, 2009 at 4:50 pm. Reason: Fixed code tags
![]() |
Similar Threads
- "Syntax error in CREATE TABLE" (MS Access and FileMaker Pro)
- Help me with: Access CREATE TABLE() SQL (MS Access and FileMaker Pro)
- how to create new table in MS Access2003 database using VB6 (Visual Basic 4 / 5 / 6)
- SQL Create table error (ASP.NET)
- how to create new table in MS Access2003 using VB6 (Community Introductions)
- MySQL newbie need help with create table definitons syntax (MySQL)
Other Threads in the MySQL Forum
- Previous Thread: Compare and update products pricing columns
- Next Thread: help with mysql SELECT statement
Views: 343 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for MySQL
"use" 1 amazon api aws bizspark breathalyzer changingprices cmg communityjournalism contentmanagement contractors copyright count court crm data database design developer development distinct drupal dui ec2 eliminate email enterprise eudora facebook form foss gartner gnu government gpl groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier journalism keyword keywords kickfire laptop law legal license licensing linux managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple mysql mysqlcolumnupdating mysqlindex mysqlinternalqueries mysqlsearch news opendatabasealliance opengovernment opensource operand oracle pdf penelope php priceupdating query referencedesign remove reorderingcolumns resultset search select simpledb sourcecode spotify sql statement sugarcrm syntax techsupport thunderbird transparency update virtualization





