• +91 9723535972
  • info@interviewmaterial.com

MS SQL Interview Questions and Answers

Question - How do I insert a value into a datetime column?

Answer - To insert values into a datetime column, you need to enclose the values in single quotes, then use one of SQL Server's date formats to supply the date value that you want to insert. For example: DECLARE @MyTable TABLE  (MyDateTime DATETIME) INSERT INTO @MyTable VALUES ('May   15, 2004 11:25am')

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners