Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

here id col have primary key and identity
id name
1 a
2 b
3 c
4 d

delete 2nd row then o/p will be

id name
1 a
3 c
4 d

next inssert 2nd row and i want o/p will be
id name
1 a
2 e
3 c
4 d

Answer Posted / boby

insert into <table_name>(id,name) values(2,'e')ORDER BY ID

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are orphan records?

932


How to transfer a table from one schema to another?

1001


How to find Duplicate Records In table?

1015


How to drop an existing table with "drop table" statements in ms sql server?

1086


What is clustered vs nonclustered index?

945


What is store procedure? How do they work?

1020


What are a database and a data warehouse?

1022


How do I trace a query in sql server?

952


If you are given access to a SQL Server, how do you find if the SQL Instance is a named instance or a default instance?

1107


How to loop through result set objects using odbc_fetch_row()?

976


How do I shrink an ldf file?

980


What are the types of containers in ssis?

1171


What is collation?

1140


Which operator do you use to return all of the rows from one query except rows are returned in a second query?

991


When do you think a developer should use sql server-based cursors?

1047