J'espère que quelques-uns comprendront ce que je dit, je sèche un peu là. Merci
Je comprend pas. Pourquoi tu ne fais pas select a.* from a, b where a.id = b.id order by b.date; ?
$ sqlite3 $(mktemp)
SQLite version 3.7.4
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table a (id integer, value text, date datetime);
sqlite> create table b (id integer, value text, date datetime);
sqlite> insert into a values (1, 'foo', datetime('now'));
sqlite> insert into a values (2, 'bar', datetime('now'));
sqlite> insert into b values (1, 'bar', datetime('now'));
sqlite> insert into b values (2, 'foo', datetime('now'));
sqlite> select a.* from a, b where a.id = b.id order by b.date;
1|foo|2012年02月13日 13:41:37
2|bar|2012年02月13日 13:41:43
sqlite> select * from b;
1|bar|2012年02月13日 13:41:58
2|foo|2012年02月13日 13:42:08
sqlite> update b set date=datetime('now') where b.id = 1;
sqlite> select * from b;
1|bar|2012年02月13日 13:45:40
2|foo|2012年02月13日 13:42:08
sqlite> select a.* from a, b where a.id = b.id order by b.date;
2|bar|2012年02月13日 13:41:43
1|foo|2012年02月13日 13:41:37
Knowing the syntax of Java does not make someone a software engineer.
# Non
Posté par Niniryoku . En réponse au message Sous-requête dans un order by. Évalué à 2.
Je comprend pas. Pourquoi tu ne fais pas
select a.* from a, b where a.id = b.id order by b.date;?Knowing the syntax of Java does not make someone a software engineer.