473,385 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using match to serach a sting with *

82
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:yy:*: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 1629
Atli
5,058 Expert 4TB
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
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
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
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...
3
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...
3
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...
17
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";...
5
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...
5
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
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...
0
AMT India
by: AMT India | last post by:
Using PEAR DB not getting result containing Umlauts Thanks in Advance AMT
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.