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 > Query problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-17-04, 10:33
oak12 oak12 is offline
Registered User
 
Join Date: Dec 2004
Posts: 22
Query problem [resolved]

Hi am tring to write a program in VB.net which connects to and excutes some queries, I try to excute the below query and it says something is up with my statement

INSERT INTO calls ( CallID, ContactID, CallDate, CallTime, Callername, Notes, CallerCompany, ActionTakenID, EmployeesID, ShortMessage, CallerNumber, Charged, OperatorID, DDI) Values (1602848, 1398, #17/12/2004#, #15:22:01#, "Not forwarded", "No message", "N/A", 7, 22, "Message For 15:21:55 on 17/12/2004", "Number Withheld", False, 42, "9240")

Have tried the above in Access and it works fine, is MySQL a bit more fussy?

Last edited by oak12; 12-20-04 at 03:52.
Reply With Quote
  #2 (permalink)  
Old 12-17-04, 12:27
oak12 oak12 is offline
Registered User
 
Join Date: Dec 2004
Posts: 22
Arghh

Spent hours on this, finally found out stupid mysql likes it's dates like
'2004-08-15'
Reply With Quote
  #3 (permalink)  
Old 12-18-04, 06:50
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,534
don't assume access queries will run in mysql

there's a lot more that's different between the two of them than just the format of the sate strings
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
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