Incorrect syntax near 'CAST' in sql server -
i have table pin_mst below
but following query showing error
msg 102, level 15, state 1, line 1 incorrect syntax near 'cast'.
.. plz help.
select top cast(1 varchar(3)) pin_id pin_mst
try 1 -
select top 1 pin_id pin_mst
or -
select top 1 cast(1 varchar(3)), pin_id pin_mst
Comments
Post a Comment