Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Search

Author  Topic 

Tamer
Starting Member

22 Posts

Posted - 2008-08-27 : 07:58:27
Dear Experts,

How can I search for a specific value in a specific field without
browsing any table or transfering data to another table.

In other words,how can I move the pointer from the top of the table
to the record containe the value by SQL statment?

Thanks In Advance

Tamer

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-27 : 08:03:48
didnt get you. pointer? which pointer you're refering to?
Go to Top of Page

Tamer
Starting Member

22 Posts

Posted - 2008-08-27 : 08:24:15
If you insert a record the pointer will be set on this record
and if you delete a record the pointer will be on the previous
record.

my question is how can I move this pointer to record by particular
criteria ?

Is there in the SQL something called locate ?
what this syntax do ?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-27 : 08:27:49
pointer? there's nothing like such a pointer in sql
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-27 : 08:29:20
Use Query

Select columns from table
where col='some value'

Dont open the table from Management Studio/Enterprise Manager

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-27 : 08:35:03
quote:
Originally posted by madhivanan

Use Query

Select columns from table
where col='some value'

Dont open the table from Management Studio/Enterprise Manager

Madhivanan

Failing to plan is Planning to fail


ah..so was that pointer one in SSMS
i could guess that
Go to Top of Page

Tamer
Starting Member

22 Posts

Posted - 2008-08-27 : 09:12:26
I think the only way to search for a value in the SQL is to put it
in a virtual table by a query.

Thanks everybody
Go to Top of Page
   

- Advertisement -