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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -