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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -