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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -