表1:online :videoId name, num
表2:ok: id num
怎么把表1和表2关联起来。。。。
select 你要查询的列 from online,ok where online.videoid = ok.id;或者inner join写法另外可以看看http://blog.sina.com.cn/s/blog_4e32d6820100dvmc.html
还请说明这两个表的关系。要连接两个表,必须有关联关系才可以。SQL写法就不用说了吧,标准的SQL表连接就是。