SQL comand for adding a row in SQL Server Management Studio -


simple question search online yields no results. in microsoft sql server management studio, query adding new row? want know actual script is. if 1 of fields auto-incremented, how managed in sql command?

assume have 2 columns autonum , mycolumnname in table called tablename...

insert tablename (mycolumnname) values ('test'); 

you don't need include autonumber field system automatically handle it.

example: http://sqlfiddle.com/#!6/8e083/2/2


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -