sql - INSERT values query throws error -



sql - INSERT values query throws error -

i'm using oracle 11g , next error when come in next query

insert customer(customer_id, first_name, last_name, dob, gender, pan_no) values(301, ‘robert’, ‘william’, 1986-10-05, ‘m’,’pq56794’);

error:

ora-01756: quoted string not terminated

problem

’pq56794’

try below if works:

insert customer(customer_id, first_name, last_name, dob, gender, pan_n0) values(301, 'robert', 'william', to_date('19861005','yyyymmdd'), 'm','pq56794');

tip : re-create notepad avoid problems related quote.

sql oracle oracle11g

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -