|
-
Apr 30th, 2001, 04:20 AM
#1
Thread Starter
Lively Member
uniqueness in similarity?
i have a table in sqlserver which has only one column,say name
select * from table_name;
returns
anil
vijay
anil
anil
vishal
anil
mohan
if we want to delete the 5th anil name (through query analyser)
how to do it
if i use newid() function
it always changes.
thank you
Last edited by moonguy; May 2nd, 2001 at 01:26 AM.
-
Apr 30th, 2001, 09:31 PM
#2
Code:
Dim sSQL as String
Dim rsTable as recordset
sSQL = "select * From table_name"
set rsTable = dbname.openrecordset(sSQL)
rsTable.FindLast("Name = 'anil'")
if not rsTable.EOF then rsTable.Delete
rsTable.MoveFirst
Do you mean specifically the fifth occurance, or the last occurance of "anil"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|