Garayed.com  

Go Back   Garayed.com > mySQL
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-04-2008, 06:04 AM
Ahmad Humayun
 
Posts: n/a
Default Joining Tables using REGEXP

Hello there! I hope everyone reading this post is enjoying mysql as
much as I am

Anyways I have a newbie question about using REGEXP in mysql. I wanted
to know if its possible to join two tables using a regexp on columns
of the two tables. E.g. Lets say I want to join TableA (with column
firstname) and TableB (with column nickname). What if I want to join
these tables by matching nickname and firstname. The problem is by
using a regular WHERE clause in the SELECT * FROM TableA, TableB WHERE
TableA.firstname = TableB.nickname doesn't give me the power for doing
the matching of the two columns. But I also know that REGEXP runs with
a constant string on one side which is the pattern to match with. If
only I could replace the regexp pattern string with a string
containing TableB.nickname plus other regular expression constructs.

Is there a way to do this?


regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:09 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.