How to concat time with present date in MS SQL while converting from MySQL? -
here mysql code:
select concat(date_format(now(),'%y/%m/%d'),' ','06:00:00 am')
trying concat date time, getting error like: required 2 parameters concat.
ms sql:
select concat((convert(varchar,getdate(),102),' ','06:00:00 am')); *not working while converting mysql sql*
try this...
select concat( convert(varchar,getdate(),102),' 06:00:00 am') or select convert(varchar,getdate(),102) + ' 06:00:00 am'
Comments
Post a Comment