A表 B表
id name id money
1 张三 1 1000
2 李四 2 5000
3 张三 3 3000
4 李四 4 7000
a表id和b表id是主外键关系
完成查询结果
1)
name money &n ......
SQL code:
declare
@s varchar(1000)
set @s = '1,23,a'
declare
@sql varchar(1000)
declare
@temptb table(IDList varchar(8000))
set @sql = 'select col= '''
+ replace(@s,',','''union all select ''')
+ ''''
print (@sql)
exec (@sql)
这里的结果我如何拿出来用啊
SQL code:
输出参数
......
创建作业 定时调用几个存储过程,该怎么写?存储过程的参数怎么传?
2005在对象资源管理器里面
SQL语句该怎么写
"命令"中输入要执行的语句:
这个需要你自己写啊
这里输入存储过程..
我是说用SQL语句如何创建作业
......
有一订单表
SQL code:
t_orders{
oid,
user_id,
booking_time
}
用户拥有的订单数
SQL code:
select o.user_id, count(o.oid) as amount from t_orders o where booking_time between (time1, between2)
group by o.user_id order by amount
====================
user_id amount
10001 1
10002 1
......
安装平台:win7(32bit)
mysql版本5.1.43
问题1:当我添加innoDB(引擎)的时候,service 通不过?(我添加在我的D盘根目录上)
问题2:既然通不过也就算了,我不用innoDB了,我配置standard configuration,配置成功。
然后我...................:\mysqld
mysql test
提示:con't connect to mysql server on 'localhos ......
A表:
日期 咨询次数
2010-2-1 2
2010-2-2 3
2010-2-8 7
B表:
日期 投诉次数
2010-2-1 2
2010-2-2 3
2010-2-3 6
C表:
日期 反馈次数
2010-2-1 ......