0
I need to do an Insert using JDBC Connection, but inserting generates the error below.
com.microsoft.sqlserver.jdbc.Sqlserverexception: Conversion failed when Converting date and/or time from Character string.
Down here is my Insert.
insert into OFOBJOFICINALOCAL (CODCOLIGADA, IDOBJOF, CODLOCAL, DATAENTRADA, DATALANCAMENTO, DATASAIDA, CODUSUARIO, CODMOTIVOTRANSF,
RECCREATEDBY, RECCREATEDON, RECMODIFIEDBY, RECMODIFIEDON) values
('1', 'CB-01', '2.0334', '07/10/2016 12:54', '2019-3-8T10:48:8',
'null', 'xxxx.xxxx', 'null', 'xxxx.xxxx', '2019-3-8T10:48:8',
'xxxx.xxxx', '2019-3-8T10:48:8')
Can anyone tell me how to fix it, because I’ve tried every way to change these dates but it won’t...
(1) The value
07/10/2016 12:54
means October 7 or July 10? (2) 'NULL' means you want to report no value or store the null string'?– José Diz
You don’t need to put "solved" in the title. I know that on many websites it is a common practice, but here it is not necessary. You’ve already accepted an answer and that’s enough
– hkotsubo