代码如下:
--查询
SELECT tp.tp_id, tp.tpmc, tp.leveid, tp.tpdz, tp.jgm, tp.scsj, tp.pbzyid, tp.ksbfsj, tp.jsbfsj, tp.status, tp.tpbz FROM qdgl_tupian tp INNER JOIN qdgl_pqb pq
ON tp.tp_id=pq.tpid WHERE pq.bfjgm='27010825' AND ps_bfsj >= '2013-01' AND ps_bfsj< 2013-05-31 ;
代码如下:
-- 修改
UPDATE jx_lsjl jx INNER JOIN isa_gtxx gt ON jx.ckid=gt.gtbh set jx.ckid=gt.gtid WHERE gt.jgm='27010825' AND jx.jgm='27010825' ;
代码如下:
--删除
DELETE FROM jx_lsjl jx INNER JOIN isa_gtxx gt ON jx.ckid=gt.gtbh WHERE gt.jgm='27010825' AND jx.jgm='27010825' ;
您可能感兴趣的文章:MySQL的子查询中FROM和EXISTS子句的使用教程MySQL查询优化:连接查询排序limit(join、order by、limit语句)介绍MySQL优化之使用连接(join)代替子查询MySQL利用profile分析慢sql详解(group left join效率高于子查询)mysql多个left join连接查询用法分析mysql使用from与join两表查询的区别总结
inner join
INNER
示例
join
Mysql