| SQL INSERT date string using ASP into Oracle database [message #21341] |
Fri, 26 July 2002 11:49  |
Emad Ramadan
Messages: 1 Registered: July 2002
|
Junior Member |
|
|
I'm sure from my code, I have tried many methods without solution, the day,month and year are variables from select <html> form, I tried to use the to_date function as :
script language="VBScript"
fday = request.form("day")
fmonth = request.form("month")
fyear = request.form("year")
birthdate = fday&"/"&fmonth&"/"&fyear
birthdate="to_date("&birthdate&",dd/mm/yyyy)"
SQL="INSERT INTO PASSENGER VALUES ('"&birthdate&"');"
##: and also I'm getting the same error:
[[Oracle]][[ODBC]][[Ora]]ORA-00917: missing comma
anybody can help me ?
|
|
|
|
|
|
|
|