Author |
Topic |
shucks
Starting Member
5 Posts |
Posted - 2009-05-04 : 00:58:11
|
Hi,I need some help please. When i run this insert statement I get the following error. The field is a datetime, null field so I don't understand. This type of insert works fine on another table declared as datetime. Syntax error converting datetime from character string.insert into contribution_payments (employer_id,department_id,period_from,fund_id,payment_method,amount,reference_id,status,status_changed,submitted,payment_received,receipt_id,payment_cleared,payment_dishonoured,dishonour_notified,reminder_sent,transfer_due,transferred,external_fund_cleared,header_transferred,transferred_to_gl,admin_reference_number,finals_transferred,additions_transferred,initiate_required,transfer_notified,bpay_number,batch_number,ech_reference,payment_model)values (09575155,'MAIN' ,('2008-10-01 08:00:00.003'), 'ECH_ANZ0415AU','DDEBIT','762.30','3582091','TRANSFER FILE PRODUCED', ('2009-01-15 12:30:15.620'),('2009-01-14 15:47:48.637'),'NULL','NULL','NULL','NULL','NULL','NULL','NULL',('2009-01-15 12:30:15.620'), ('2009-01-15 12:30:32.367'),'NULL','NULL','NULL','NULL','NULL','Y','NULL','NULL','NULL','ECH0SFMSP3582091','CLEAR') |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-05-04 : 08:12:45
|
insert into contribution_payments (employer_id,department_id,period_from,fund_id,payment_method,amount,reference_id,status,status_changed,submitted,payment_received,receipt_id,payment_cleared,payment_dishonoured,dishonour_notified,reminder_sent,transfer_due,transferred,external_fund_cleared,header_transferred,transferred_to_gl,admin_reference_number,finals_transferred,additions_transferred,initiate_required,transfer_notified,bpay_number,batch_number,ech_reference,payment_model)values (09575155,'MAIN' , '2008-10-01 08:00:00.003','ECH_ANZ0415AU','DDEBIT',762.30,'3582091','TRANSFER FILE PRODUCED', '2009-01-15 12:30:15.620','2009-01-14 15:47:48.637',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2009-01-15 12:30:15.620', '2009-01-15 12:30:32.367',NULL,NULL,NULL,NULL,NULL,'Y',NULL,NULL,NULL,'ECH0SFMSP3582091','CLEAR') E 12°55'05.63"N 56°04'39.26" |
|
|
|
|
|