You are here: Re: Insert a record in a particular place « MsSQL Server « IT news, forums, messages
Re: Insert a record in a particular place

Posted by Erland Sommarskog on 05/27/06 11:24

surya (suryaitha@gmail.com) writes:
> i have a table name is HH table
> it has two columns 'hhno' and hhname'
> HH tabele
> hhno hhname
> 100 suresh
> 101 baba
> 103 ram
> i want to insert a one record(102 , chandra) in HH table between
> (101,baba) and( 103 ,ram).
> how can i insert them please help ,me thanks

Just as you would insert any other row:

INSERT HH(hhno, hhnmae)
VALUES (102, chandra)

Then again, one can say that you can't because "between" does not make
any sense in this context. Tables are unordered sets of rows.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация