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 > Informix > Converting to mysql

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-14-10, 08:58
dabrorius dabrorius is offline
Registered User
 
Join Date: Mar 2010
Posts: 2
Question Converting to mysql

Hi, I have a informix database (sql queries) and I want to import it to mySQL.
But I get some error on this line

Code:
INSERT INTO student(jmbag, ime, prezime, jmbg, spol, datrod, pbrrod, pbrstan)
  VALUES('0555000011', 'Kresimir', 'Salopek', '0101980554687', 'M', EXTEND(MDY(1,1,1980), YEAR to SECOND), NULL, NULL);
I don't understand what this part means and how to write it so that it's compatible with mySQL

Code:
EXTEND(MDY(1,1,1980), YEAR to SECOND)
any help would be appreciated
thanks
Reply With Quote
  #2 (permalink)  
Old 03-14-10, 10:48
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,084
you can simply write '1980-01-01' instead
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-14-10, 10:50
dabrorius dabrorius is offline
Registered User
 
Join Date: Mar 2010
Posts: 2
thanks a lot
Reply With Quote
Reply

Thread Tools
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