horso by themebuzz
  • www.datsol.com.au
  • info@datsol.com.au
  • 8:30 AM - 5:00 PM

SQL – Create a table

To create a table using T-SQL is quite simple

This is a simple example of how to create a table. Note, a primary key is recommended. This will be covered in another post.

USE databasename

CREATE TABLE tablename

(

ID int NOT NULL,

FirstName char(15) NOT NULL,

LastName char(20) NOT NULL

);


			

Post Comment

Your email address will not be published. Required fields are marked *