join :select distinct name,id,tdate from table1 inner join table2 on table1.id=table2.id order by tdate
解决方案 »
- mysql如何对先有表进行分区?
- 执行show processlist时候,state是end代表什么意思
- 对一个表加读锁然后再加写锁有什么意义么?
- 触发器和存储过程的问题
- 如何获取MySQL数据库的字段的数据类型信息?
- 多表关联查询,如果操作这样一个语句?
- mysql数据库insert后再select有延时问题
- 怎样将一台计算机备份的数据库文件(SQL Server d:\)恢复到另一台计算机上(SQL Server c:\)
- mysql每秒能插入多少条数据?
- 插入MYSQL的数据成了乱码
- shuixin13(犬犬(心帆)) :请问mysql中的查询问题
- Mysql control center 0.8.10 在windows 2000 下连接linux下的Mysql数据库,不通?
select * from table1,table2 where table1.id=table2.id order by table2.tdate desc
不知道对不对!
ON table1.id = table2.id
WHERE table2.id NOT ISNULL
ORDER BY table2.tdate DESC;