RE: select * from table where field=hex doesnt work

2003-07-08 Thread Mikko Noromaa
, check out ExcelSQL! - see http://www.excelsql.com - -Original Message- From: Koh Swee Meng [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 6:07 AM To: [EMAIL PROTECTED] Subject: Re: select * from table where field=hex doesnt work oh, i found the solution

Re: select * from table where field=hex doesnt work

2003-07-08 Thread Paul DuBois
At 12:31 +0900 7/8/03, Nils Valentin wrote: Hi Koh, Shouldn't the value in the first sample be used like this ? 1) SELECT * FROM table1 WHERE field1 = '0x6100620063006400'; Correct me if I am wrong. You're wrong. :-) 0x6100620063006400 is a hex literal, which will be treated as a

Re: select * from table where field=hex doesnt work

2003-07-08 Thread Nils Valentin
Hi Paul, 2003 7 9 11:17Paul DuBois : At 12:31 +0900 7/8/03, Nils Valentin wrote: Hi Koh, Shouldn't the value in the first sample be used like this ? 1) SELECT * FROM table1 WHERE field1 = '0x6100620063006400'; Correct me if I am wrong. You're wrong. :-) 0x6100620063006400

Re: select * from table where field=hex doesnt work

2003-07-07 Thread Koh Swee Meng
oh, i found the solution for this, by doing SELECT * FROM table1 WHERE STRCMP(field1, 0x6100620063006400)=0 will work as expected, so no need to worry that character %(ASCII 25) will cause any problem. Regards, Koh Swee Meng - Original Message - From: Koh Swee Meng [EMAIL

Re: select * from table where field=hex doesnt work

2003-07-07 Thread Nils Valentin
Hi Koh, Shouldn't the value in the first sample be used like this ? 1) SELECT * FROM table1 WHERE field1 = '0x6100620063006400'; Correct me if I am wrong. Best regards Nils Valentin Tokyo/Japan 2003 7 8 11:55Koh Swee Meng : i inserted a new record with this SQL INSERT INTO

Re: Select * From table where name Like 'help'; Help

2002-12-10 Thread Robert Citek
At 05:10 PM 12/9/2002 -0500, Beauford.2003 wrote: I mentioned in my previous email that I am using PHP, and I have also tried putting quotes around $var (many different ways) with no better results. REGEXP just gives a syntax error when I do this. Below is an example of using PHP and MySQL with

Re: Select * From table where name Like 'help'; Help

2002-12-09 Thread Benjamin Pflugmann
Hello. On Mon 2002-12-09 at 01:00:33 -0500, [EMAIL PROTECTED] wrote: I am doing this search from a website, What does that mean? Which scripting language do you use? PHP? This is more a question for your website environment than about MySQL. and from what I can tell there is no way to use a

Re: Select * From table where name Like 'help'; Help

2002-12-09 Thread Beauford.2003
, but it does not cover this. - Original Message - From: Benjamin Pflugmann [EMAIL PROTECTED] To: Beauford.2003 [EMAIL PROTECTED] Cc: Robert Citek [EMAIL PROTECTED]; MySQL List [EMAIL PROTECTED] Sent: Monday, December 09, 2002 3:30 AM Subject: Re: Select * From table where name Like 'help

Re: Select * From table where name Like 'help'; Help

2002-12-09 Thread Beauford.2003
- From: Jocelyn Fournier [EMAIL PROTECTED] To: Beauford.2003 [EMAIL PROTECTED] Sent: Monday, December 09, 2002 9:31 AM Subject: Re: Select * From table where name Like 'help'; Help No it doesn't, since I introduce a space between % and one. So stone will not be returned :) Regards, Jocelyn

Re: Select * From table where name Like 'help'; Help

2002-12-09 Thread Beauford.2003
3:08 PM Subject: Re: Select * From table where name Like 'help'; Help You still have not mentioned what language you are using to interface with MySQL. If you are using PHP or Perl, then things like single and double quotes will make a difference here, and looking in the MySQL manual

Re: Select * From table where name Like 'help'; Help

2002-12-09 Thread Beauford.2003
This is most definitely a quoting issue with your PHP string. If it is quoted correctly, the MySQL server will never see the string $var appearing after the keyword REGEXP, so if $ has meaning to a regular expression wouldn't matter (unless the value of $var contained a $). I've used REGEXP

Re: Select * From table where name Like 'help'; Help

2002-12-09 Thread Andy Bakun
[EMAIL PROTECTED] Sent: Monday, December 09, 2002 3:30 AM Subject: Re: Select * From table where name Like 'help'; Help Hello. On Mon 2002-12-09 at 01:00:33 -0500, [EMAIL PROTECTED] wrote: I am doing this search from a website, What does that mean? Which scripting language do you

Re: Select * From table where name Like 'help'; Help

2002-12-09 Thread Andy Bakun
On Mon, 2002-12-09 at 16:10, Beauford.2003 wrote: Andy, I mentioned in my previous email that I am using PHP, and I have also tried putting quotes around $var (many different ways) with no better results. REGEXP just gives a syntax error when I do this. I'm sorry, I did miss the where you

Re: Select * From table where name Like 'help'; Help

2002-12-09 Thread Benjamin Pflugmann
Hello. On Mon 2002-12-09 at 09:22:09 -0500, [EMAIL PROTECTED] wrote: I am using PHP on my website, but this is certainly a MySQL question. That shouldn't matter, because the real value $var is inserted before the query is send to the MySQL server, where REGEXP of the query is evaluated.

Re: Select * From table where name Like 'help'; Help

2002-12-08 Thread Jocelyn Fournier
Hi, A dirty solution would be to search : field LIKE '% one %' or field LIKE 'one %' or field LIKE '% one' or field='one'; Regards, Jocelyn - Original Message - From: Beauford.2003 [EMAIL PROTECTED] To: MySQL List [EMAIL PROTECTED] Sent: Tuesday, December 10, 2002 12:50 AM Subject:

Re: Select * From table where name Like 'help'; Help

2002-12-08 Thread Robert Citek
Try the REGEXP modifier. For example: mysql select Another One regexp [[::]]One[[::]] ; mysql select Fashioned regexp [[::]]One[[::]] ; The format differs from that used in sed, grep, awk, perl, python, etc. http://www.mysql.com/documentation/mysql/bychapter/manual_Regexp.html#Regexp

Re: Select * From table where name Like 'help'; Help

2002-12-08 Thread Beauford.2003
PROTECTED] To: Beauford.2003 [EMAIL PROTECTED] Cc: MySQL List [EMAIL PROTECTED] Sent: Sunday, December 08, 2002 8:16 PM Subject: Re: Select * From table where name Like 'help'; Help Try the REGEXP modifier. For example: mysql select Another One regexp [[::]]One[[::]] ; mysql select Fashioned regexp

Re: SELECT FROM TABLE WHERE ?

2001-01-24 Thread Angela
Did you ever get an answer? I played with some queries and came up with this: SELECT ID, NAME, RATING FROM SINGLEMALTS ORDER BY RATING DESC LIMIT 0,1; If you want more than one record, you can change the 1 at the end to how many you want. If you want to list them all in that order, you can take

RE: SELECT FROM TABLE WHERE ?

2001-01-22 Thread Cal Evans
Select * from singlemalts order by rating limit 1; Now, you have to share your samples with the rest of us! :) Cal http://www.calevans.com -Original Message- From: Richard Reina [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 21, 2001 12:49 PM To: [EMAIL PROTECTED] Subject: SELECT

Re: SELECT FROM TABLE WHERE ?

2001-01-22 Thread Web master
select max(rating) from singlemalts will give you the highest value or select * from singlemalts order by rating desc will give all the rows ordered by rating and the first row will have the highest value Richard Reina wrote: I've tried the manual (and the Oreily MySQL book) and played