以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助] select 语句 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=126619) |
-- 作者:blsu33 -- 发布时间:2018/10/25 13:30:00 -- [求助] select 语句 select numbers,eveid,eveidname,invoice,invoicetype,submiterid,submiteridname,doctype,doctypename,Count(numbers) AS 订单数,SUM(amount) As totalamount fr om {pm0102} GROUP BY numbers,eveid,eveidname,invoice,invoicetype,submiterid,submiteridname,doctype,doctypename select numbers,eveid,eveidname,invoice,invoicetype,submiterid,submiteridname,doctype,doctypename,Count(numbers) AS 订单数,SUM(amount) As totalamount fr om {pm0102} GROUP BY numbers 老师 上述 语句 怎么不对? |
-- 作者:blsu33 -- 发布时间:2018/10/25 14:01:00 -- 解决了 |
-- 作者:有点蓝 -- 发布时间:2018/10/25 14:01:00 -- 第一个放到数据库执行,提示什么错误? 第二个用法不对
|
-- 作者:blsu33 -- 发布时间:2018/10/25 15:04:00 -- 老师 cmd99.CommandText="Select * fr om {pm0101} where 1=2" Dim dt2 As DataTable=cmd99.ExecuteReader bxmx.Table.DataSource =dt2 Dim rdg As WinForm.RecordGrid = e.Form.Controls("RecordGrid1") rdg.Table=bxmx.Table RecordGrid绑定不成功 ,想要 RecordGrid 绑定这个查询表 怎么做?
|
-- 作者:有点蓝 -- 发布时间:2018/10/25 15:30:00 -- rdg.Table=bxmx.Table rgd.Build() \'重新生成记录窗口 |