If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL Implementation Issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-04, 12:52
Wealth-Builderz Wealth-Builderz is offline
Registered User
 
Join Date: Oct 2004
Posts: 29
Exclamation MySQL Implementation Issue

I've moved on to actually creating the MySQL database now. I've read a lot of theory on database design and such but at university I have not come across INNO DB tables and I believe these need to be used in order to maintain Referential Integrity and aid in the creation of foreign keys. Does the use of this table type as apposed to ISAM have any effect on the way I should implement my web-based project??
Reply With Quote
  #2 (permalink)  
Old 11-30-04, 13:28
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
no, it shouldn't, it merely allows you to utilize relational integrity in the database rather than writing logic into your app to handle it
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 11-30-04, 15:01
Wealth-Builderz Wealth-Builderz is offline
Registered User
 
Join Date: Oct 2004
Posts: 29
Thanks, just needed to make sure before hand.
Reply With Quote
  #4 (permalink)  
Old 11-30-04, 15:51
Wealth-Builderz Wealth-Builderz is offline
Registered User
 
Join Date: Oct 2004
Posts: 29
Thumbs down

I'm currently using phpMyAdmin to test my database by running queries but upon creating this table I get an error.

SQL-query:

CREATE TABLE Notification (
Notification_ID INT(4) NOT NULL AUTO_INCREMENT ,
Person_ID INT(4) NOT NULL ,
NotificationType_ID INT(4) NOT NULL ,
NotificationSubType_ID INT(4) NOT NULL ,
Notification_Details TEXT(250) NOT NULL ,
Notification_Date DATE(12) NOT NULL ,
Target_Date DATE(12) NOT NULL ,
Status_Type VARCHAR(32) NOT NULL ,
PRIMARY KEY (Notification_ID)
) TYPE = InnoDB

MySQL said:

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(12) NOT NULL, `Target_Date` DATE(12) NOT NULL, `Status_Type` V


Any ideas why??

Last edited by Wealth-Builderz; 11-30-04 at 15:53.
Reply With Quote
  #5 (permalink)  
Old 11-30-04, 16:05
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
DATE datatype doesn't take a length

it's a special datatype with an internal format that you need not know anything about
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #6 (permalink)  
Old 12-01-04, 13:38
Wealth-Builderz Wealth-Builderz is offline
Registered User
 
Join Date: Oct 2004
Posts: 29
D'oh, silly me, thanks r937.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On