web-beer писал(а):
code_35847.txt [ 0.4Kb ] [ 2 ] code_35848.txt [ 1.9Kb ] [ 2 ] code_35846.txt [ 1.2Kb ] [ 2 ]Обмен опытом
Кстати, вот в этом куске, выделенное красным - лишнее
web-beer_1.png
CREATE TABLE IF NOT EXISTS sql(
id integer primary key,
tsql TEXT);
INSERT INTO sql values(NULL,"SELECT * FROM table1 ORDER BY ");
INSERT INTO sql values(NULL,"SELECT * FROM table1 ORDER BY OO");
INSERT INTO sql values(NULL,"SELECT * FROM table1 ORDER BY F");
INSERT INTO sql values(NULL,"SELECT * FROM table1 ORDER BY E");
INSERT INTO sql values(NULL,"SELECT * FROM table1 ORDER BY M");
INSERT INTO sql values(NULL,"SELECT * FROM table1 ORDER BY T");
INSERT INTO sql values(NULL,"SELECT * FROM table1 WHERE LL="1"");
INSERT INTO sql values(NULL,"SELECT * FROM table1 WHERE MM NOT LIKE "Пусто" or M="Шаг"");
SELECT tsql FROM sql WHERE id:=%1;