dgrafx
asked on
syntax problem i guess
don't work on mysql much but here goes:
I'm trying to
insert into tbl
(col1,col2)
select 'hello','world'
where not exists (select 1 from tbl where col1 = 'hello')
get an error
i know that on oracle (which i don't work on much either) one needs to select FROM DUAL
is there a requirement like that on mysql or ???
thanks
I'm trying to
insert into tbl
(col1,col2)
select 'hello','world'
where not exists (select 1 from tbl where col1 = 'hello')
get an error
i know that on oracle (which i don't work on much either) one needs to select FROM DUAL
is there a requirement like that on mysql or ???
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks guys
ASKER
taken from dev.mysql.com
whats your opinion on this?
note that i cannot access that db right now or i would just try it - sorry.