SQL Searching?

08/15/2010 09:23 AriezOMG#1
Is there a way to find a certain thing in SQL, like in a certain table, for instance on notepad or microsoft word you press ctrl + f and can search. Is there a way I can do this in SQL?
08/15/2010 17:09 lilprohacker#2
what are you looking for?
08/15/2010 17:14 ProfNerwosol#3
Read about SELECT statement with WHERE clause.
08/16/2010 19:14 GM.Triest#4
Depends for what you're looking for.. lets say for exmaple you're looking for a char, you do the next thing :

Use ps_GameData
GO

SELECT * FROM Chars
Where CharName = 'Ariez'
Go

___________________

Hope that helped (:
08/16/2010 20:43 lilprohacker#5
Its better to use the like command with modifiers so it will find every char that is similar to the name.

Use ps_GameData
GO

SELECT * FROM Chars
Where CharName like '%Ariez%'
Go
08/16/2010 21:32 abrasive#6
I think he is talking about searching for table names, field names, stored procedures, and other items from a global perspective in the management studio.
08/16/2010 23:25 sunder702#7
Quote:
Originally Posted by Apocalypsist View Post
Is there a way to find a certain thing in SQL, like in a certain table, for instance on notepad or microsoft word you press ctrl + f and can search. Is there a way I can do this in SQL?
try here [Only registered and activated users can see links. Click Here To Register...]

and if your looking for a particular item or items in a table try creating a new View, it's pretty much does what lilprohacker is talking about.
08/22/2010 01:27 Gatewayto#8
Quote:
Originally Posted by ProfNerwosol View Post
Read about SELECT statement with WHERE clause.
This is a quick and easy website to test some of your SQL statement online: [Only registered and activated users can see links. Click Here To Register...]

This link is a less then 5 minutes reading on how to use the "SELECT" statement.
* = all (table, fields, etc...)
% = wild card

I'm trying to learn SQL, if there is a mistake, please point it out so I can correct it.