Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Match Against Several Parts Of One Column


for example if the MatchColumnData = "aaaa bbbb cccc" and $TheSearch = bbbb

I dont want to do just this: ....




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Selecting Records, Then Summing Parts Of A Column, Then Sorting By That Column...
I’m keeping track of baseball stats, and each row represents one line of stats (from a box score) for one player of a single game. Because of this, a single player may have multiple rows in the table. I want to cumulate each player’s stats (so they’ll be one row per player) and display as output, which isn’t a problem. Then I want sort by a certain stat, but by now I’ve already looped through the table, so I can’t sort using a mySQL query at this point. I tried first putting values into an array in a previous project, but that became extremely complicated. What’s the best way to approach this?

View Replies !   View Related
MATCH / AGAINST Weighting Per Column
I'm trying to figure out a weighting issue and could do with your thoughts on a solution.

I have a simple table called address ......

View Replies !   View Related
Changing A Column To Match An Index
Basically I have a table that stores information along with a "type." For examples sake lets call the types; red, green, blue, and purple. These types were just entered as varchar in the database.

I want to expand the number of types that I can have AND allow myself more flexibility by creating a new table that stores these types and indexes them.

red = 1
green = 2
blue = 3
purple = 4
orange = 5 ( added as a new one )

but the table that references these types needs to be changed now as it cannot be a varchar anymore and it needs to reference the right number in the newly created table.

Right now I can only think of programatically iterating through the entire list (which is quite large) and running a string comparison and then updating based on that =(

View Replies !   View Related
Match Multiple Values In A Column Cell?
I'm am trying to query a table for multiple values within a row in a column. Something like this:

Code: .....

View Replies !   View Related
Match Against Search Won't Match Strings With A Forward Slash In Them
query:

SELECT id, title, MATCH(title, tags) AGAINST('road/street') AS score FROM some_table WHERE MATCH(title, tags) AGAINST('road/street')

The result of this query is that I should get all the rows where the title has the the string 'road/street' in it. Well, that's what I think I should get anyway, but I don't. Instead, I get every row where the title has either "road" or "street" in it. What I think it happening is that mySQL is considering the forward slash to be a space and is searching for either "road" or "street".

View Replies !   View Related
2 Databases - Export Certain Parts To Another Database
I have a database with all users profile information, but i would like to export ceritain parts into another database, and the layout and colum names in the second database will be differnt.
How would i do this on all users, then when a new users signs up, it will happen to them?

View Replies !   View Related
Divide Items In Database Into 5 Parts
I'm looking for a way to divide my articles into 5 groups that are roughly the same size. I've been doing 2 groups using:

UPDATE jos_content
Set `fulltext`=Concat("{sidebar id=2}",`fulltext`)
WHERE mod(id,2) = 0
AND state="0";
UPDATE jos_content
Set `fulltext`=Concat("{sidebar id=1}",`fulltext`)
WHERE mod(id,2) = 1
AND state="0";

and each group gets a distinct sidebar inserted. I need to change this and divide the items into 5 groups. I'm not sure if there's a way to do this but thought maybe a query that said something like "if ID ends in 1 or 2, then insert sidebar1" and so forth using 2 ending numbers for each group. I can't figure out how to do this.

View Replies !   View Related
Separating Parts Of Data Into Different Rows
I wasn't quite sure where to post this so I'm sorry if it's in the wrong category. I have a great deal of data I need to enter into my database which starts in the form xxxxxx:xxxxxx where the x's always vary in length and there is always a ":" dividing the two parts of data. I need to seperate these two parts of data and have the first part before the ":" go into one row and the second half after the ":" go into another row (both rows in same table)...the ":" can be discarded. I'll be adding this data manually by uploading a txt file to the database in the form of:

xxxx:xxxx
xxxxxxxx:xx
xxxxxxx:xxxxxxx
xxx:xxxxxxx

I have no idea how I would go about doing this. It would really save me time if it was possible to code a small script that automatically does this everytime I upload a txt file.

View Replies !   View Related
Selecting Only Parts Of The Content Of A Field?
Is it possible to select only parts of of the content of a field with MySQL?

For example if I have some text fields in a table that contain HTML markup in them and I want to only select what is contained within the first <h1> tag from each field.

Note that I don't want to just select the fields that have <h1> in them, but select only the text within that tag and not anything else contained in that field.

Is this possible?

View Replies !   View Related
ERROR 1171: All Parts Of A PRIMARY KEY Must Be NOT NULL
I am trying to create a primary key on a field and I get this error:

ERROR 1171: All parts of a PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE instead.

I have read the manual (that mentions this bug) and I have tried setting all fields in the table to NOT NULL and I still can't create a primary key.

View Replies !   View Related
Large .sql File (break Down To Small Parts)
i have an oscommerce installation that generates a 200mb sql backup file. i want to try and rebuild the installation on my local pc (localhost) to emulate and play with, unfortunately the 200mb file is difficult to handle. phpymadmin seems to crash.

i have console access on the host however.

is there a way i can break down the sql file into smaller increments for easier uploading?

View Replies !   View Related
#1136 - Column Count Doesn't Match Value Count At Row 1
I'm getting the above error with the following SQL Statement. I cannot seem to find the error in the code. The select statement does pull multiple rows.

I'm using my SQL version: 4.1.19

Any clue on why this isn't working?

INSERT INTO `Grants` ( `Project_Code` , `Grant_Code` , `Fiscal_Year` , `Capital` )
VALUES (
(
SELECT Project_Code, Grant_Code, FY, SUM( Capital )
FROM Grants_Temp
WHERE Project_Code = 'OSUT'
AND FY = '2006'
AND Claim_Month = '072006'
GROUP BY Grant_Code
ORDER BY Grant_Code
)
)

View Replies !   View Related
Column Count Doesn't Match Value Count At Row 1
I am getting the following error when I run my query.

Column count doesn't match value count at row 1

I have looked up this error and have checked and I appear to have the right number and names in my query. In the DB table I have 34 columns, and that is what I have in the query.

The last 4 in the query are for the names of the images being uploaded, but am not sure how this all works, so I don't know if I need them, but have them there until I know for sure. Comment, Purchase and Remarks are not used in this form, but I have added them so everything is being shown in the query. Code:

View Replies !   View Related
Column Count Doesn't Match Value Count At Row 1 ...
I don't even know what to do to start fixing it.

"Column count doesn't match value count at row 1"

View Replies !   View Related
MATCH AGAINST Match Exact Word
I want to do the equivalent of

SELECT id from TABLE WHERE text='text'

only fast solution I found is:

SELECT id,text from TABLE WHERE MATCH(text) AGAINST('value' IN BOOLEAN
MODE) HAVING text='value'

Is there a better way to do that? Cause using having needs me to add a
column in select wich is a problem in some cases.

It has to return the EXACT WORD MATCH. so only rows containing the
exact "value" content in the text column will be returned.

View Replies !   View Related
How To Fix "Column Count Doesn't Match Value Count At Row 1" ?
I've been trying to install a portal to my installation of Invision Power Board, and I keep coming up with this problem. I post here for two reasons: firstly is that no one is responding over at the portal creator's thread and I need help, second is that this error looks like a mySQL error that could be solved without the need of the creator if possible.

Here is the error returned:

mySQL query error: INSERT INTO `ibf_portal_box` VALUES (1, 'lang.last_topics', '<box><menu>10,20,30,50</menu>
<topics_show>10</topics_show>
<order>last_post</order>
<exforums></exforums>
</box>', 0, 'middle', '*', 0, 4, 'last_topics', '1')

mySQL error: Column count doesn't match value count at row 1
mySQL error code:
Date: Tuesday 21st of December 2004 08:43:10 PM

I am very new to mySQL and don't really understand it. What is wrong with the above that it is trying to insert, and how is it fixed?

View Replies !   View Related
Don't Select Rows That Match Both Columns But DO Select Rows That Don't Match Both
I suppose it is because it is 2:30 AM but I'm having a bit of trouble figuring out the SQL I need to write. I am usually pretty good at this. Here's what I'm having trouble with.

My app includes a Poll system built from scratch. Each question will run for one month. the month that the poll will run is kept in 2 columns in my table... runMonth and runYear.

What i'm having trouble doing is selecting the rows that don't match both the current runMonth and current runYear.

My Table...

id.............Question...........runMonth...........runYear
1..............QA...................1......................2007
2..............QB...................2......................2007
3..............QC...................3......................2007
4..............QD...................4......................2007 (current month and year)
5..............QE...................5......................2007
6..............QF...................6......................2007

I can simply get the question for the current month...



SELECT * FROM table WHERE runMonth = 4 AND runYear = 2007;
but if I try to get all others using


SELECT * FROM table WHERE runMonth != 4 AND runYear != 2007
I get an empty result set. As I should because there is nothing there that the runYear != 2007 doesn't knock out. The result set I am looking for is


id.............Question...........runMonth...........runYear
1..............QA...................1......................2007
2..............QB...................2......................2007
3..............QC...................3......................2007
*********************(remove runMonth4 and runYear 2007)
5..............QE...................5......................2007
6..............QF...................6......................2007

What am I missing?

View Replies !   View Related
Can I: Export Column, Optimize & Fill New Column With Value To Original Column?
I have a database with over 40,000 rows and 28 columns (learned how to import large files by changing php.ini!).

Using Excel, I am able to: (A) copy and paste original column (e.g., SIZE_TEXT) (B) ALONG with each records' UNIQUE_KEY, (C) sort SIZE_TEXT column, (D) filter for unique values, (E) fill new column with its SIZE_TEXT__KEY, and then (F) import the new SIZE_TEXT_KEY value into the database by creating a new column or pasting over the columns original value.

However, I think this can be performed, with less potential for error, using phpMyAdmin, but I haven't found anything demonstrating how to perform these actions.

I searched the terms optimization and normalization.

I am hoping one can use phpMyAdmin to:

1) create a new table with export column of the original table (SIZE_TEXT_TABLE),
2) sort new table for duplicates and show only unique values, then
3) import the column results into each Unique Records original column (SIZE_TEXT)
4) link new column values to Foreign Key (the Parent Table's SIZE_TEXT_KEY)

View Replies !   View Related
MATCH () AGAINST ()
I have MATCH () AGAINST () working on one server, but it's not working on hosted server (dreamhost). For instance, something as simple as this works well on one but not on the hosted server:

SELECT ID, topic FROM feiaa_discussion WHERE MATCH (topic) AGAINST ('welcome')

Any reason why this could be? The versions are almost identical and there's no difference between versions anyway. Do hosts sometimes disable this function?

View Replies !   View Related
Match() Against()
query
====
select * from Products where
match(Description) against('and');

table
====
CREATE TABLE Products (
ProductNameVARCHAR(50)NOT NULL,
DescriptionTEXTNOT NULL,
FULLTEXT(Description)
) ;

INSERT INTO Products(ProductName,Description)
VALUES ('Aan', 'The movie promises to be true to life and aims at showing the Police department in India, in a constructive fashion.');

View Replies !   View Related
Match Against
Alright, someone please explain to me why this:Code:

SELECT * FROM products WHERE MATCH(cat3) AGAINST('Apple' IN BOOLEAN MODE)

works, and this:Code:

SELECT * FROM products WHERE MATCH(cat3) AGAINST('Other' IN BOOLEAN MODE)

doesn't?I have 2 products, one has 'Apple' in cat3, and the other has 'Other' in cat3. There is absolutely NO difference other than that

View Replies !   View Related
MATCH
This is my query for a search

SELECT *, MATCH (title,short_desc,text) AGAINST ('$search') from
announcements WHERE MATCH
(title,short_desc,text) against ('$search');

where $search is from a form search box thing, results sorted by relevence.
Now it all seems to be working fine except, when testing it I have found that 'fireworks' returns a result, but 'fire' or even 'firework', does not. What can I do to make it if it is at the start of a word, to return this result?

View Replies !   View Related
Should I Use MATCH AGAINST
I'm building a site for someone, and is going to have user contributed content with a 'tags' field.

What should I use for searching? Right now I'm doing a 'match against blah in boolean mode' type of search, and it works fine when searching my 'tags' column in my table. But I wouldnt want someone to put the same term over and over to make the article appear higher.

If I did a 'match against' maybe my 'body' column as well, would that maybe make the results more "fair" so to speak? Or is there something else I can do?

View Replies !   View Related
Best Match
Hi, here's the question:

I have a table wich contains productinformation with a field called PRODID. Then I have another table wich is contains groupinformation. This contains a field called GROUPID, wich is the beginning of the PRODID's. A product belongs to the group with the longest matching GROUPID. For example:

+-----------+--------------+
| GROUPID | DESCRIPTION |
+-----------+--------------+
| 015543 | hats |
| 0155 | boots |
+-----------+--------------+

+-----------+--------------+
| PRODID | DESCRIPTION |
+-----------+--------------+
| 01554300 | Yellow hats |
| 0155000 | Yellow boots |
+-----------+--------------+



Say I have the value of PRODID (e.g. "01554300") and I want to select the group tou wich it belongs. In the example the returned group would be "hats" because the match "015543" is longer than the match "0155".

I also need it the other way around: I have the value of GROUPID (e.g. "0155") and I want all product wich belong to this group... It should return "Yellow boots" but not "yellow hats" because there's a group with a longer GROUPID that matches the beginning of the PRODID.

View Replies !   View Related
FULLTEXT MATCH()
I am refining the search within a small IT Jobs Website developed in
C#. I am using FULLTEXT search on 3 columns (title, short_desc,
long_desc), but am having trouble becuase some queries for the database
will be "c#" and "asp.net". The Match() function does not recognise
these types of keywords because the length is less that 4 characters
and a "." in words splits it into 2 words each 3 charaters long.

Anyone find a way around this? I like the Match() function as it brings
more relevant result back first in most cases.

View Replies !   View Related
Collations Mix Match
I've setup my own deadicated server and everythings well apart from mySQL.If defaults every database and table to latin1_swedish_ci
I have no idea if it needs to use this collation but its giving some php apps a problem.
I'm running 4.1.9 nt with php 5 on 2K3.
I think I'm going to have to manually ajust the collation on all my existing databases, but how do I stop this happening?

View Replies !   View Related
Group By With Match
I use match to search inside the records from a database. After that I want to sort them into categories like the new search engine: http://clusty.com

View Replies !   View Related
Match Problem
i'm having a problem with searching two columns with match. both columns i want to search are fulltext indexes. this query works:

Code:

SELECT * FROM places WHERE MATCH (name) AGAINST ('$srchstring')


but when i try to change the match to MATCH (name,notes) i get this error:
#1191 - Can't find FULLTEXT index matching the column list
as i said, both are fulltext indexes

View Replies !   View Related
MySQL Match
Could someone give me just a bit of assistance here? I am running into a brainlock and cannot see what the problem is...I'm sure its obvious. Here's the code:

 $sql = mysql_query("SELECT * MATCH(title) AGAINST ('$title') AS score FROM articles WHERE MATCH (title) AGAINST ('$title')") or die(mysql_error()); 

I am getting an error on this statement. What is it that I am doing wrong?

View Replies !   View Related
JOIN MATCH AGAINST
I have two mysql tables - pictures and pictures_categories. I want to search the pictures table with $searchstring, and the pictures_categories with $searchcategory.

I think I may have made a sloppy effort at joining these tables... My code:

$sql = "SELECT pictures.*, pictures_categories.* ".
"FROM pictures, pictures_categories".
"MATCH(pictures_categories.picture_id, pictures.keywords)
AGAINST ('$searchcategory $searchstring' IN BOOLEAN MODE) AS total_entries FROM pictures, pictures_categories
WHERE MATCH(pictures_categories.picture_id, pictures.keywords)
AGAINST ('$searchcategory $searchstring' IN BOOLEAN MODE) ORDER BY pictures.id DESC LIMIT $offset , $total_entries";

e.g.
pictures
id | keywords | image
1 | Castle, Mountain | image1.jpg
2 | Tree, Park, Castle | image2.jpg
3 | Car, Man | image3.jpg

pictures_categories
pictures_id | category_id
2 | 223

So, for example, if i searched for castle with a category id of 223 I would only get the result image2.jpg (id = 2) dispite castle being in image1 aswell.

View Replies !   View Related
Match An Entry
Software receives alerts and feeds them into a database table. I need a stored procedure that takes each entry before it enters the table and compares it with the entries already in the table. If the entry about to be added matching one that is already in the table...I need it to cancel each other out and be removed from the database table. If the entry about to be added DOESN'T have a match then it should be added to the table. Is this possible?

View Replies !   View Related
MATCH AGAINST Not Working
I am trying to return results with the MATCH AGAINST queries but for some reason the results are inconsistent, i have the FULLTEXT index for the appropriate field but it seems sketchy. I've instead been using a regular expression in my query for time being, but as you can imagine this is getting highly impractical as the database grows and grows every minute.

Here is an example:

View Replies !   View Related
How To Normalize Match Against
I'd like to normalize it so I can cut-off "irrelevant" matches below a certain threshold, but the maximum value seems to vary wildly depending on search text.

I've searched the docs and found http://dev.mysql.com/doc/refman/5.0/en/fulltext-search.html, but this doesn't actually explain the value that's returned.

View Replies !   View Related
Join With First Match?
Can someone tell me How I can join a table (A) on a table (B) on a sorted column using a join condition so that only the first match is selected as the joined record?

For instance, I have:

Table A

phone numbers
983357654

Table B
Prefixes

9833
983
98
9

I want to joib table A and B using the condition that the phone number is "LIKE" the prefix% . but I want only the first match , i.e. in this example 9833

View Replies !   View Related
Is MATCH AGAINST Really Faster Than LIKE?
I'm currently using MySQL 4.1 and performing keyword searches on multiple columns. The original expression looks like: ....

View Replies !   View Related
Partial Match
How to do partial matches?

Data in a column = " has been demonstrated"

another column can have another set of terms
1: been demonstrated
2: Car has been demonstrated
3: car demonstrated

in the 1) its easy to pattern match using %been demonstrated%
however

how to do it in the second case and even worse the 3rd case. I think it could be done by back referencing in regular expression. But how to backreference in mysql?

View Replies !   View Related
Match And Join
I have a search function that works fine using the Match command.

SELECT *,
MATCH(supplierCatNo, name, description)
AGAINST ('".$searchstring."' IN BOOLEAN MODE)
AS score FROM ".TABLE_PREPEND."_products
WHERE MATCH(supplierCatNo, name, description)
AGAINST ('".$searchstring."*' IN BOOLEAN MODE)
ORDER BY score DESC";

Now I want to include a JOIN command to use the supplierCatNo to lookup the SupplierName (in _suppliers table) when searching.

Is this possible? What would the syntax be? I've spent a fully day now trying to get this to work and I feel like throwing my keyboard out of the window.

View Replies !   View Related
MySQL MATCH PB
We use the MySQL MATCH function to search a product catalogue (which has a fulltext index on 3 columns). An example query looks like this:

SELECT p.Name, etc FROM Products AS p WHERE MATCH(p.Name, p.Description, p.Keywords) AGAINST ("q 10") GROUP BY p.ID ORDER BY MATCH(p.Name, p.Description, p.Keywords) AGAINST ("q 10") DESC

The problem is that many of these products have words or phrases that are 1 or 2 characters long (eg "Q 10").

We want to avoid changing the min. word length so we don't impact on performance or other databases. Am I right in thinking that the only way round it is to revert to using LIKE(%Q 10%) , or is there some way of altering the MATCH fuction to find what we need ( or mabye using MATCH in the first place and reverting to LIKE if no results are returned - can this be done in one query?)

View Replies !   View Related
Match All Fields Possible
the built-in match function appears to work on full-text search, but in case i want to search every field, is there any built-in function to work elegant?
or i need to

select * from table where field1 like "%pattern%";
...
select * from table where fieldn like "%pattern%";

View Replies !   View Related
Match Keywords
I have keywords with logical operators "and(+), or(|), and not(-)", and I want to match them with a row in database with similar keywords.

For examples:

a. (good+(morning|night)) -afternoon
b. good+night -morning <---- this is stored in row in the table in DB

It's easy to send a query to match these 2 without taking account of the "NOT morning" in (b). But if you take account of that, these 2 won't match. The only way I thought of so far is to send a query and match (b), then do a 2nd check with the negative keyword to determine that they don't match. But it is not efficient if there are a lot of positive keywords or many rows like (b).

View Replies !   View Related
Closest Match
Is it possible in SQL to find a 'closest match' with a set of numbers? eg
I have a db with fields R, G & B

then I have values r, g & b and I want to find the record that is closest in value to r,g&b.

View Replies !   View Related
Match Against Issues
I have a query that is searching a fulltext field in the database using match against. I get 0 returns, however i believe this might be caused by the keyword being in to many rows and is being ignored by default in mysql. I've posted the query in case i am wrong. However if i'm not wrong how would i create a fulltext search? ....

View Replies !   View Related
MATCH Statement
Can anyone tell me why I get a blank result from the following statement please?....

View Replies !   View Related
2 Of 5 Conditions Match
I need my query to match at least 2 of 5 given conditions.

Example:
I have conditions
content REGEXP 'A'
content REGEXP 'B'
content REGEXP 'C'
content REGEXP 'D'
content REGEXP 'E'

I need database to return this entry only if at least 2 conditons are true.

View Replies !   View Related
What Is The Diff. B/w Match And Like
I try to write this query

SELECT SQL_CALC_FOUND_ROWS Ch.id as id, Ch.name_arabic as ChName, Ch.logo as pic , Lang.name_arabic as Lang , Class.name_arabic as Class, Grp.grpname_arabic as 'Group', Owner.ownername_arabic as Owner FROM channels AS Ch , classifications AS Class , languages AS Lang , ownership AS Owner , groups AS Grp WHERE (Lang.id = Ch.language_id) AND (Class.id = Ch.classification_id) AND (Owner.id = Ch.ownership_id) AND (Grp.id = Ch.group_id) AND (MATCH (Ch.name_arabic) AGAINST ('%2M%')) ORDER BY Ch.id LIMIT 0,5
it's not working , but when write it using like

SELECT SQL_CALC_FOUND_ROWS Ch.id as id, Ch.name_arabic as ChName, Ch.logo as pic , Lang.name_arabic as Lang , Class.name_arabic as Class, Grp.grpname_arabic as 'Group', Owner.ownername_arabic as Owner FROM channels AS Ch , classifications AS Class , languages AS Lang , ownership AS Owner , groups AS Grp WHERE (Lang.id = Ch.language_id) AND (Class.id = Ch.classification_id) AND (Owner.id = Ch.ownership_id) AND (Grp.id = Ch.group_id) AND (Ch.name_arabic like '%2M%') ORDER BY Ch.id LIMIT 0,5
every thing goes ok , and there is data,
I don't know the reson, where my table collection is "cp1256_general_ci"

View Replies !   View Related
Records That Don't Match
I have two tables. One has bar information. The second has the bar's drinks. They are tied by 'bar_id'. So there are either one or multiple records in table 'bar_drinks' for a given bar_id.

The problem is finding the bars that don't exist in the bar_drinks table. I tried several ways, even a subselect, but get an error of more than one row existing:


SELECT bar_name FROM bar WHERE bar_id = (select distinct bar_id from bar_drinks)

I see the error here, but really am stumped how to achieve this....

View Replies !   View Related
Mysql MATCH AGAINST
I have a table full of city name and an auto-complete field hat output result in a php search page.

So when I type 'Mon' it output me this:

- Montreal, QC
- Montreal-Est, QC
- Montreal-Ouest, QC

then, if I type 'Mont', it does not output me Montreal, QC but only the 2 others?

So is someone can explain me why?

View Replies !   View Related
MATCH Fulltext Search
I am doing a search now where I have a statement "FirstName LIKE
'%$firstname%' OR JobTitle LIKE '%$jobtitle%'

how can I do the same statement using full text search, for example
with fulltext I would say MATCH (FirstName) AGAINST ('$firstname') OR
MATCH (JobTitle) AGAINST ('$jobtitle)
But that doesnt work, what is the correct way to do this query?

View Replies !   View Related
ORDER BY With Match() Doesn't Work
Something like the following does not sort the results:

select * from properties where match(location) against('"main st"' in boolean
mode) order by location;

The results are not sorted by location. If I sort by some other field not
specified in a match()/against() pair, the sort works.

Shows up in MySQL 4.1 compiled for Windows and Linux.

Is this a known bug, and are there any workarounds that I can try without
source diving?

View Replies !   View Related
Using Match To Serach A Sting With *
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?

View Replies !   View Related
LIKE Condition For An Exact Match?
I have a field in a table called Title. I have a record whose Title field contains a value of Ford Mustang. When I run a LIKE on my table such as LIKE 'Mustang' my record does not shop up. I am assuming LIKE is for an exact match. What if I want any record that has EITHER Ford or Mustang in the Title.

View Replies !   View Related
MATCH Boolean Search
Recently my search engine stopped working... instead of searching and matching queries in boolean mode... it just grabs EVERYTHING and displays it... I'm thinking that my host must have turned something off, It has MySQL 4+ running and it used to work flawless.

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved