Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

INSERT statement

$
0
0


The customer_id is INT type.

Which one is correct between following two INSERT statement? (difference is only customer_id value 1 and '1' in the VALUES(.....))

INSERT INTO customer 
(customer_id, first_name, last_name, employed_date) 
VALUES (1, 'Tom', 'Jones', '08/22/2014')

and 

INSERT INTO customer 
(customer_id, first_name, last_name, employed_date) 
VALUES ('1', 'Tom', 'Jones', '08/22/2014')
I know those two works fine in SQL Server but I want to know correct SQL statement




Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>