《一》用UNOIN合并几个查询,在最后一个查询语句中要汇总前几个查询的某一个字段!比如:
select mc,je1 from ....where.......
union select jc,je2 from ....where.......
union select '合计',je=je1+je2 where.....
其中je=je1+je2不能识别提示子查询不能........望各位大侠指点!!!!!!!!!!!
《二》我用两个DATETIMEPICKER控件来修改数据库里的一个日期时间字段(日期和时间是合并的)
将第一个Datatimepicker1设置成日期类型,第二个为时间类型不知道怎么将两个控件的值合并在一起返回数据库?
《三》Fastreport报表能不能自定义一个函数来把表中的一个数字转换成中文大写?如果可以在什么地方定义?
select mc,je1 from ....where.......
union select jc,je2 from ....where.......
union select '合计',je=je1+je2 where.....
其中je=je1+je2不能识别提示子查询不能........望各位大侠指点!!!!!!!!!!!
《二》我用两个DATETIMEPICKER控件来修改数据库里的一个日期时间字段(日期和时间是合并的)
将第一个Datatimepicker1设置成日期类型,第二个为时间类型不知道怎么将两个控件的值合并在一起返回数据库?
《三》Fastreport报表能不能自定义一个函数来把表中的一个数字转换成中文大写?如果可以在什么地方定义?
group by ...
compute ...
union select jc,je2 from ....where.......
union select '合计',(je1+je2) as je where.....
group by ...
compute ...
其compute ...是什么意思
select mc,je1 from ....where.......
union select jc,je2 from ....where.......
union select '合计',(je1+je2) as je where.....
也不行
union select jc,je2 from ....where.......查询中的列数和列的顺序相同,是不是这个mc,je1和jc,je2不符合?譬如:mc在一个表的第三列上,jc在一个表的第一列或者第二列或者别的列,不在第二列上,或者两个表查询列数据类型不兼容?
union select jc,je2 from ....where.......
union select '合计',(je1+je2) as je where.....
也不行
什么提示?
<<3>> Fastreport好象没有自定义脚本程序的功能吧(不肯定),你要在自己的程序里自己想办法处理