insert into tnsnames (protocol, community)
values ('tcp', 'tcp.world')
where sid = 'DM5A'
I keep getting sql command not properly ended??
what am i doing wrong
Printable View
insert into tnsnames (protocol, community)
values ('tcp', 'tcp.world')
where sid = 'DM5A'
I keep getting sql command not properly ended??
what am i doing wrong
It looks from your post as if the record already exists - if so, you want to do an update, not an insert.
WHERE clause should be NOT be used with INSERT statements. I think, there is already an existing record in the table and hence, you might want to update the existing one. Guess, this is what your ultimate goal is.