Re: LOAD DATA IF?

2005-11-02 Thread John thegimper
uBois <[EMAIL PROTECTED]>: > At 1:16 +0100 11/3/05, John thegimper wrote: > >Is it possible to specify and IF statement or IGNORE statement when > >useing LOAD > >DATA? > >Example > > > >SET price = IF PRICE(< 20) THEN IGNORE > >SET price = IGNO

LOAD DATA IF?

2005-11-02 Thread John thegimper
Is it possible to specify and IF statement or IGNORE statement when useing LOAD DATA? Example SET price = IF PRICE(< 20) THEN IGNORE SET price = IGNORE IF <20 - FREE E-MAIL IN 1 MINUTE! - [EMAIL PROTECTED] - http://www.pc.nu -- MySQL General Ma

LOAD DATA INFILE and SET REPLACE

2005-11-02 Thread John thegimper
Why cant i get this to work? The name dont get replaced... :P LOAD DATA LOCAL INFILE '/tmp/myfile.txt' INTO TABLE cache FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\n' IGNORE 1 LINES (name) SET name = REPLACE(name, 'Coke', 'Pepsi'); - FREE E-MA

Re: MySQL REGEXP problems...

2005-08-22 Thread John thegimper
Ok how can i mix boolean and regexp searches? SELECT * FROM tbl WHERE MATCH (name) AGAINST ('TEST' IN BOOLEAN MODE) OR name REGEXP 'TEST'; That dont work :( Quoting [EMAIL PROTECTED]: > John thegimper <[EMAIL PROTECTED]> wrote on 08/22/2005 04:55:46 AM: >

Re: Please help me: Boolean fulltext searches, AND instead of OR

2005-08-22 Thread John thegimper
ents. ------ I have done some searches on google and found several people wanting to do the same... but no solutions. Quoting John thegimper <[EMAIL PROTECTED]>: > Is there still no solution for this? Every large searchengine works like > this.

Re: Please help me: Boolean fulltext searches, AND instead of OR

2005-08-22 Thread John thegimper
Is there still no solution for this? Every large searchengine works like this. Quoting: > > > Hi that works fine only now if a user puts + in front of a word that > word > becomes optional = OR? > What i would like is the search to work exactly like before only that it > > defaults to AND inst

Re: MySQL REGEXP problems...

2005-08-22 Thread John thegimper
my host dont want to change the ft_min_word_len it´s now at 4 chars and i need to do searches with only 2 chars. Quoting Jasper Bryant-Greene <[EMAIL PROTECTED]>: > John thegimper wrote: > > Thanks so there is no operator that tells mysql that both words must > match? >

Re: MySQL REGEXP problems...

2005-08-22 Thread John thegimper
lt;[EMAIL PROTECTED]>: > > John, > > using 'one.*two|two.*one' would do it. :) > > regards, > esv. > > > --- John thegimper <[EMAIL PROTECTED]> wrote: > > > ok just figured out that if the database contains > > "one and one is two&qu

Re: MySQL REGEXP problems...

2005-08-21 Thread John thegimper
ok just figured out that if the database contains "one and one is two" and i use regexp to search for "one two" it will not match. If i search for "one(.*)two" it will. But how can i make it match if i search for "two one" ? Quoting John thegimper <[EMAI

Re: MySQL REGEXP problems...

2005-08-21 Thread John thegimper
Here is another user with the same problem http://forums.pcworld.co.nz/archive/index.php/t-34536.html Maybe his explanation is better :) Quoting John thegimper <[EMAIL PROTECTED]>: > SELECT * FROM tbl WHERE item REGEXP 'SEARCHSTRING' > > Database holds: > SAMSUNG

MySQL REGEXP problems...

2005-08-21 Thread John thegimper
SELECT * FROM tbl WHERE item REGEXP 'SEARCHSTRING' Database holds: SAMSUNG IDE 40GB 7200RPM Search for SAMSUNG IDE 7200RPM = 0 RESULTS SAMSUNG 40GB 7200RPM = 0 RESULTS SAMSUNG +40GB +7200RPM = 0 RESULTS SAMSUNG IDE 40GB = 1 RESULT How do i need to change the SEARCHSTRING to use AND for each word

Re: Is there an easy way to copy a table between two mysql servers?

2005-08-20 Thread John thegimper
atabase | mysql -h > yournewhost.som -u newuser -ppasswd newdatabase > > that's it ! > otherwise, yes dump/export. > > 2005/8/20, John thegimper <[EMAIL PROTECTED]>: > > Is there an easy way to copy a table between two mysql servers? Or do > i need to > > export

Is there an easy way to copy a table between two mysql servers?

2005-08-20 Thread John thegimper
Is there an easy way to copy a table between two mysql servers? Or do i need to export and then import? I´m using php btw. Thanks, Johhn - FREE E-MAIL IN 1 MINUTE! - [EMAIL PROTECTED] - http://www.pc.nu -- MySQL General Mailing List For list arc