Самый простой запрос (был конечно сложнее):
- Код: Выделить всё
select G.name from goods G
..вываливается с ошибкой. Лечится прямым указыванием таблов:
- Код: Выделить всё
select goods.name from goods
Кто знает почему так?
Laz0.9.24 win/lin mysql5
Модератор: Модераторы
select G.name from goods Gselect goods.name from goodsAttid писал(а):а ошибку указать слабо ?
скорее всего проблема в парсере, попробуй отключите prepare
если так то ти пиши в трекер, ну или хотябы сюда если инглишь не любишь.
"MySQL50Connection1 : Error executing query: You have an error in your SQL syntax, check the manual that corresponds to your MySQL server version for the right syntax to use near 'G' at line 1"SELECT G.name FROM otdels G23 Query SELECT S.chk_id, S.prim, S.price_rozn, G.name FROM chk_slave AS S INNER JOIN goods AS G ON S.good_id=G.good_id
23 Query show index from chk_slave AS S INNER JOIN goods AS G ON S.good_id=G.good_idProject raised exception class "EDatabaseError with message
mysq: Error executing query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS S INNER JOIN goods AS S ON S.go###(gdb unparsed remainder...)###
[OK]12 Query SELECT G.name, (R.count-IF(EE.spis>0,EE.spis,0)) as itog, G.izm, W.bar FROM storage R
LEFT JOIN ( SELECT S.good_id, M.bar_id, (SUM(S.amount*S.counts)) as spis FROM chk_slave S
INNER JOIN chk_master M ON M.chk_id=S.chk_id
WHERE M.status=1 and M.dateon between 20080415070000 and 20080416203058 and M.bar_id=0
group by M.bar_id,S.good_id ) EE ON EE.bar_id=R.bar_id and EE.good_id=R.good_id
INNER JOIN goods G on G.good_id=R.good_id
INNER JOIN warez W on W.id=R.bar_id
where( G.group_id not in (14,15) and G.amount=1 and R.bar_id=0
)order by G.nameLisolog писал(а):Тема закрыта - всем спаибо +)
Lisolog писал(а):Докопал:
выключил - всё норм.
Lisolog писал(а):Ну извини, не предал сразу значения
Lisolog писал(а):По поводу примера на несколько постов раньше лежит очевидный, хотя люди говорят, что у них работает и это меня сдерживает.
select pole1,pole2 from tableselect table.pole1, table.pole2 from tableselect T.pole1, T.pole2 from table as Tselect T.pole1, T.pole2 from table TSET character_set_client="utf8", character_set_connection="cp1251",character_set_results="utf8";23 Query show index from chk_slave AS S INNER JOIN goods AS G ON S.good_id=G.good_idСейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1