Go Premium for a chance to win a PS4. Enter to Win


SQL/mSQL where (*) = something - Possible

Posted on 1999-01-05
Medium Priority
Last Modified: 2008-03-06
My question is about SQL and mSQL.  I need to know if there is a SQL statement operator, suported by mSQL to define the "where" as a wild card. For Ex:

Select * From DB1
Where * Like S*

This would return all Fields of a row which contains any string starting with "S" no matter which field it is in...
Hence the Where *
Is this legal/Possible

Question by:guadalupe
1 Comment

Accepted Solution

Victor Spiridonov earned 150 total points
ID: 1092516
No , such statement doesn't exist. However you can create stored procedure, that will emulate such behaviour: loop through all the fields and check each of them for S* condition.

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question