Unix Technical Forum

5.0.37 ,sql a table still not found

This is a discussion on 5.0.37 ,sql a table still not found within the MySQL General forum forums, part of the MySQL category; --> Hi, from 5.0.27 till now 5.0.37, porblem still like this: select * from a1,a2 left join b1 on b1.f1=a1.f1 ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:08 AM
wang shuming
 
Posts: n/a
Default 5.0.37 ,sql a table still not found

Hi,
from 5.0.27 till now 5.0.37, porblem still like this:

select * from a1,a2
left join b1 on b1.f1=a1.f1
where a2.f2=a1.f2
// shows table a1 does not exist.

if SQL changes into
select * from a2,a1
left join b1 on b1.f1=a1.f1
where a2.f2=a1.f2
// SQL runs OK.

Thanks!

ShumingˇˇWang
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:08 AM
Cruz, Edwin \
 
Posts: n/a
Default RE: 5.0.37 ,sql a table still not found

in mysql doc you could find a better answer of your problem (http://dev.mysql.com/doc/refman/5.0/en/join.html) have a look on the part "Join Processing Changes in MySQL 5.0.12" but that you have to do is use implicit joins:

select *
from a1 inner join a2 on a1.f2=a2.f2
left join b1 on a1.f1 = b1.f1


Regards!!!

--
Ing. Edwin Cruz
Software Engineer, GE Treasury - Risk Systems
Softtek - GDC Aguascalientes




-----Original Message-----
From: wang shuming [mailto:wangshuming01@gmail.com]
Sent: Jueves, 05 de Abril de 2007 12:39 a.m.
To: mysql@lists.mysql.com
Subject: 5.0.37 ,sql a table still not found


Hi,
from 5.0.27 till now 5.0.37, porblem still like this:

select * from a1,a2
left join b1 on b1.f1=a1.f1
where a2.f2=a1.f2
// shows table a1 does not exist.

if SQL changes into
select * from a2,a1
left join b1 on b1.f1=a1.f1
where a2.f2=a1.f2
// SQL runs OK.

Thanks!

ShumingˇˇWang
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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
Forum Jump


All times are GMT. The time now is 10:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com