Search the MySQL manual:

E.6 Differences between different thread packages

MySQL is very dependent on the thread package used. So when choosing a good platform for MySQL, the thread package is very important.

There are at least three types of thread packages:

In some systems kernel threads are managed by integrating user level threads in the system libraries. In such cases, the thread switching can only be done by the thread library and the kernel isn't really ``thread aware''.

User Comments

Posted by erik on Monday June 17 2002, @7:39pm[Delete] [Edit]

something that they never get into in this
documentation is how to effectively use it
(period) in a SQL query with, oh, tables, and
columns. :)

select users from table where first_name REGEXP
\"^[RBrb]ob\";

will select all users that have names that start
with rob/bob (first character case insensitive)

Those of us who use DBI + Perl or php can
certainly make effective use of this.

Posted by fragking on Thursday December 19 2002, @3:34pm[Delete] [Edit]

erik, this is described here:
http://www.mysql.com/doc/en/Pattern_matching.html


Posted by dmean on Wednesday December 18 2002, @5:29pm[Delete] [Edit]

If you are searching for literal
parentheses, you
have to enclose each parenthesis in brackets;
otherwise, mySQL thinks they're part of the
regular expression syntax. For instance:

WHERE phone REGEXP '(435)';

would return any phone numbers that have the
sequence 435 in any part of the string, such as
"1(801)555-4351". However:

WHERE phone REGEXP '[(]435[)]';

would return only phone numbers with (435), such
as "1(435)555-5555".

Posted by [name withheld] on Monday June 17 2002, @7:39pm[Delete] [Edit]

I've a question concerning negations of regular
expressions - e.g. I want the sentence "this is
nice" to match, while the sentence "this is not
nice" should not match. I only found possibilities
for the negation of single characters in this
tutorial, but what about whole words?!

Posted by dmean on Thursday December 19 2002, @3:34pm[Delete] [Edit]

Thanks for the reference to http://www.mysql.com/doc/en/Pattern_matching.html, fragking (there
really should be a "see also" link to it
somewhere on this doc page.) I couldn't get
REGEXP to work right for me till I found a VERY
IMPORTANT note on the Pattern Matching page
regarding case-sensitivity:

"Prior to MySQL Version 3.23.4, REGEXP is case
sensitive.... From MySQL 3.23.4 on, to force a
REGEXP comparison to be case sensitive, use the
BINARY keyword to make one of the strings a
binary string."

So I finally got my REGEXP (which searches for
any uppercase letters in a user id) to work
correctly:

mysql> SELECT * FROM tblTimePunch WHERE eid
REGEXP BINARY "[A-Z]";

Posted by [name withheld] on Tuesday June 25 2002, @1:35am[Delete] [Edit]

Putting the column last is handy too:
select * from table where "Joe Bob Jim" regexp
name

Add your own comment.