473,614 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ 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.....WHER E username
= % ? Can I use a wildcard with this somehow? Thanks, Ike
Jul 19 '05 #1
2 2955
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.....WHER E 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**********@y ahoo.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.....WHER E 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
3118
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' 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
1
3221
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 maps. I have come up with two approaches, one using inheritance and the other using composition. I am unable to decide which one is better. The sample source code follows.
2
1236
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 anything after that - simply put, a "2.2*", in shell terms.
4
3796
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 the where clause of a sql string to send to SQL 2000 for a data set. Currenly I check each control with an IF statement to determine if something is filled in. If there is I begin building the where clause. Below is what I have done (and it...
3
2874
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 past I believe if it wasn't an aspx file, things didnt work right. Can anyone provide input if this really is the case now?
7
2534
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 mapping in IIS6 using the ASP.NET 2.0 ISAPI DLL. Here is what I am attempting and I cannot for the life of me figure this out. I have several situations:
2
2881
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 getting 404 error, not even the asp.net one, so I guess the IIS is blocking the request. I would uncheck to verify that file exists if it would be for special extension, but this is wildcarded so I don't know what to do... any solution?
6
3085
by: Jan Kucera | last post by:
Hi, does anybody know about wildcard mapping ASP.NET 2 in IIS6? Any tutorial? Thanks, Jan
1
3722
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 were originally created under VS.Net 2003. The proper version number is generated as expected, assembly version and file version of the compiled executable are both 3.0.xxxx.yyyyy.
4
2686
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 accordingly. The problem is my database structure is making it difficult: I need the filter to first lookup the partially inputted name in the clients table and then filter my invoices according to the clientID from that table. Here's what I have...
0
8197
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8640
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8589
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8287
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6093
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5548
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4058
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4136
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1438
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.