473,491 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

WHERE xxx = wildcard

Ike
I have a hard-coded select statement wherein I can change certain values.
Sometimes, I want to be able to select ALL the records. For example, suppose
I am SELECTing something with a 'username' column only I want to be able to
select ALL usernames (so I dont want to use IN or BETWEEN). is there a means
I can use to specify something along the lines of SELECT.....WHERE username
= % ? Can I use a wildcard with this somehow? Thanks, Ike
Jul 19 '05 #1
2 2946
Ike wrote:
I have a hard-coded select statement wherein I can change certain values.
Sometimes, I want to be able to select ALL the records. For example, suppose
I am SELECTing something with a 'username' column only I want to be able to
select ALL usernames (so I dont want to use IN or BETWEEN). is there a means
I can use to specify something along the lines of SELECT.....WHERE username
= % ? Can I use a wildcard with this somehow? Thanks, Ike


select * from tablename where username like '%';

select * from tablename where username like '%endofname';

select * from tablename where username like 'startofname%';

select * from tablename where username like '%middleofname%';

Jul 19 '05 #2
Bob
And then there's Select * from tablename

i.e no where clause at all

"Aggro" <sp**********@yahoo.com> wrote in message
news:6Q************@read3.inet.fi...
Ike wrote:
I have a hard-coded select statement wherein I can change certain values. Sometimes, I want to be able to select ALL the records. For example, suppose I am SELECTing something with a 'username' column only I want to be able to select ALL usernames (so I dont want to use IN or BETWEEN). is there a means I can use to specify something along the lines of SELECT.....WHERE username = % ? Can I use a wildcard with this somehow? Thanks, Ike


select * from tablename where username like '%';

select * from tablename where username like '%endofname';

select * from tablename where username like 'startofname%';

select * from tablename where username like '%middleofname%';

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3110
by: Ike | last post by:
I have a hard-coded select statement wherein I can change certain values. Sometimes, I want to be able to select ALL the records. For example, suppose I am SELECTing something with a 'username'...
1
3205
by: Generic Usenet Account | last post by:
Here's the requirement that I am trying to satisfy: Handle wildcards in STL such that the wildcard entry is encountered before non-wildcard entries while traversing containers like sets and...
2
1228
by: binary-nomad | last post by:
Hello, If I have a field in a table which will have values like "2.2.2", I want to do a SELECT rows WHERE field "HAS 3 DOTS", AND, a SELECT rows WHERE field "starts with 2.2" but could be...
4
3788
by: Brian Shannon | last post by:
I have 3 combo boxes and two date text boxes on a .aspx page. The user can fill in any of the 5 controls or none to filter a datagrid. I was hoping someone could explain how to efficiently build...
3
2860
by: Adam | last post by:
Its my understanding that in asp.net 2.0 you can write an httpmodule that will acts as a wildcard handler and pass requests on to the proper engine, for instance, asp or perl for example, In the...
7
2521
by: SlimFlem | last post by:
I have searched hard for 2 days on this and keep hitting a wall. I have a custom IHttpHandler setup to do Url mappings to prop up some old Urls for our site. I have also created a wildcard...
2
2872
by: Jan Kucera | last post by:
Hi, I have virtual MyFolder/* and MyFolder/MySubFolder/* mapped to an httphandler in the web.config file and all works perfectly on the asp.net development server. However on the IIS6/Win2003 I'm...
6
3072
by: Jan Kucera | last post by:
Hi, does anybody know about wildcard mapping ASP.NET 2 in IIS6? Any tutorial? Thanks, Jan
1
3710
by: Lucvdv | last post by:
In my assembly.vb files, I'm using the revision/build wildcard style: <Assembly: AssemblyVersion("3.0.*")> <Assembly: AssemblyFileVersion("3.0.*")> This onkly seems to work in projects that...
4
2672
by: Cron | last post by:
Hi can someone give me a hand with this please? I'm trying to build a search filter that scans through a list of client names in a database as you type into a text box and filters the form records...
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.