现有2个表 1、id a b c 1 1323 1200 1151 2 1321 1201 1152 2、id time name ji 1 200912 tom a 2 200911 jack b 现在要用数据窗口显示出来这样的: id time name ji 1 200912 tom 1323 2 200911 jack 1201 设计2个dw,dw1中的ji列设置成dropdowndw,显示dw2的内容,现在不知道怎么设计dw2,动态的语句怎么写?
这个下拉数据窗口中包括两组记录,一组是第一列a的,一组是第二列b的,使用union语句就可以了
select a,x='a' from table1 where id = :参数ID
union
select b,x='b' from table1 where id = :参数ID
union
select c,x='c' from table1 where id = :参数ID