473,811 Members | 1,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using match to serach a sting with *

82 New Member
Hi,

Is there any way using mysql to serach a values in a string where I don't care what is in between, for example:

I have a row which contains the following string in the foloowing format


row contents: xx:yy:*:zz;xx:y y:*:zz;xx:yy:*: zz

Now I want to serach the row for xx:yy:*:zz so I don't care what is between
the yy and the zz is there any way to do it?
Jun 15 '08 #1
2 1643
Atli
5,058 Recognized Expert Expert
You can use the WHERE LIKE syntax.
Like, for example:
Expand|Select|Wrap|Line Numbers
  1. SELECT col FROM tbl WHERE strCol LIKE 'start%end'
  2.  
The % char is the wild-card char there.
Jun 15 '08 #2
raknin
82 New Member
Thanks for you help, it works
Jun 16 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3452
by: Pat Turner | last post by:
Hi, I have some XML like this: <family> <person name="bob"> <father ref="../../person" /> </person> <person name="charlie"> <child ref="../../person" />
1
1258
by: jtreuting | last post by:
I am building a front-end search on a website to serach through the contents of a full-text enabled databsae. I have everything set-up and working using FREETEXTTABLE. Here is what I want to do. When a user types in a search phrase that has a couple words in quotes, I want it to do an AND for those instead of the normal OR that freetexttable seems to do. Is there something built into SQL Server that can handle this or do I need to...
3
8379
by: Alex Ng | last post by:
Hi, I have a form with an unbound textbox for entering a name to search for with strSQL = "SELECT * FROM main " & "WHERE main. = ' " & Me.SurnameSearch & " ' " this works fine for the filter, but however, everytime I want to serach for a name with an apostrophe in it (e.g. O'Grady), an error would turn up. I know it has got something to do with the apostrophe in the name confusing
3
1314
by: Tony Johansson | last post by:
Hello! We have MFC application from VC6. Assume we compile the MFC application in VC8. Does anything special be done to the MFC application accept remove all the errors before being able to use .NET for new feature. When we want to add new feature to the application using .NET is it then possible to use C# insted of C++?
17
11686
by: Randy Webb | last post by:
I know that the /g flag will match all occurrences. Is there a way, with a Regular Expression, to match all occurrences *except* the last one? pattern = /df/g; var myString = "asdfasdfasdfasdf"; var newString = myString.replace(pattern,'gh'); alert(newString) Gives me: asghasghasghasgh as it should. What I want: asghasghasghasdf Where the last one is not replaced.
5
6782
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would cause. If I could create a large file that could be encrypted, and maybe add files to it by appending them and putting in some kind of delimiter between files, maybe a homemade version of truecrypt could be constructed. Any idea what it...
5
1410
by: Gregory Piñero | last post by:
How do I put % in a format sting? For example I want this to work: Traceback (most recent call last): File "<interactive input>", line 1, in ? TypeError: not enough arguments for format string
5
2233
by: Faray | last post by:
Hello, this is my first post, so hopefully I am posting this in the right place. Hopefully someone will be able to help me out with my problem here it is: I need to make a program that ask a user to input a word. However when they input that word I need to convert the word to all lowercase letters so it can do a serach. This is my problem: Every time I try to use tolower it gives me an error "Cannot convert parameter 1 from...
0
909
AMT India
by: AMT India | last post by:
Using PEAR DB not getting result containing Umlauts Thanks in Advance AMT
0
9728
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
10648
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
10135
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7670
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
6890
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
5554
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...
1
4339
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 we have to send another system
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3018
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.