"需要先从table1中取出几个字段,然后再从table2中取出几个字段,"
不知道楼主是怎么取的,不如把你的SQL语句给贴出来。
不知道楼主是怎么取的,不如把你的SQL语句给贴出来。
解决方案 »
- 动态执行视图强制创建语句 create or replace force view出现的问题
- oracle WEB 开发. 后台提交FORM -- 急 .... 在线等待
- 查询的问题
- 请教——SQL查询语句效率问题
- 急要答案!!!!!!!!
- 日期型转换为整形数值
- 有关Oracle8.17的问题
- power designer 下载
- 求两个date型数据相差多少分钟用什么函数?
- 分区索引的问题
- ■动态执行执行sql语句我用多了,但今天发现问题。大家都来研究一下。
- 求助:两个表A、B,A.CODE为A表主键、A.NAME,B.CODE为B表主键、B.NAME、B.CODE_A为B表引用A.CODE的外键;如何修改A.CODE的同时自动修改
"需要先从table1中取出几个字段,然后再从table2中取出几个字段,"table1
select sflsh,zhbh,lch,dy,bh,xxz from sfgl_sfxxk where left(sflsh,8) like ? and lrsj like ? and hsqk='0' and dsgg='0' and left(mph,len(mph)-6) like ? and substring(mph,len(mph)-4,2) like ? and right(mph, 2) like ?table2 select sflsh ,jg,mj,lc,sj,sf,df,qf from sfgl_sfjek where left(hssj,4) like ? and right(hssj,len(hssj)-4) like ? and left(mph,len(mph)-6) like ? and substring(mph,len(mph)-4,2) like ? and right(mph,2) like ? and left(sflsh,8) like ?
select sflsh,zhbh,lch,dy,bh,xxz from sfgl_sfxxk where left(sflsh,8) like ? and lrsj like ? and left(mph,len(mph)-6) like ? and substring(mph,len(mph)-4,2) like ? and right(mph, 2) like ? and hsqk='0' and dsgg='0'这样试试