- 论坛徽章:
- 0
|
求助!asp里面怎么从一个表里面调用别一个表里面的字段?
sql语法应该是没有错误的,你可以在你的数据库里调试一下看看,我不懂asp,
sorry,你把这个sql语法拿出来调通了在放asp里
- C:\>;db2 select a.name,b.equipment,d.name,b.ip,c.name from encode a,equipdetails b,encode c,vectoragio d where a.sign=b.equitype and a.type='10' and c.sign=b.status and c.type='06' and d.vector=b.group and d.vecttype='52'
- NAME EQUIPMENT NAME IP NAME
- -------------------- ---------- -------------------- ---------------- ----------
- ----------
- 终端机 001 豪华机组 127.0.0.2 正常使用
- 终端机 002 普通机组 127.0.0.3 正常库存
- 终端机 003 普通机组 127.0.0.4 报废
- 终端机 004 普通机组 127.0.0.5 维修
- 终端机 005 普通机组 127.0.0.6 正常使用
- 终端机 006 普通机组 192.168.0.151 正常使用
- 6 条记录已选择。
- C:\>;
复制代码
这是我写的3个表关联的查询例子,你可以参考一下高级sql语法看看
有问题在一起讨论 |
|