sql - Where clause concat with comma -


i trying write thought simple clause. fullname string formatted ("doe, john"), hence clause , concat function.

here query:

    select *     table     concat(last_nm, ', ', first_nm)  = fullname; 

the query fails following error:

error executing database query. [macromedia][sqlserver jdbc driver] [sqlserver]incorrect syntax near ','.

is fullname "doe, john"?
fullname complete?

if not

select * table concat(last_nm, ', ', first_nm) ('%' + fullname + '%') 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -