Home > database > To save the data in the database always prompt "the data conversion overflows"
To save the data in the database always prompt "the data conversion overflows"
Time:09-26
Datetime cur_date
Cur_date=datetime (today (), now ())
Insert lgdate (sj) values (: cur_date);
Database field "sj" data type to a datetime To save the data in the database always prompt "the data conversion overflows " How is this to return a responsibility excuse me? Please help to explain! thank you
CodePudding user response:
If only you to insert a date/time in the table, why not use directly (getdate () function - for SQL server, The sysdate oralce.