好奇怪,我在我的电脑上作的一个简单的留言板,留言成功,一切正常,于是我就把它弄到服务器上去,结果什么现象都没有,不管用不用存储过程在我电脑上都正确而服务器总是没有反应
ConnectionStringSettings setting = System.Configuration.ConfigurationManager.ConnectionStrings["masterConnectionString" ......
正在做sql server 2000数据库开发,数据库记录数很多,多达千万条,重复的也很多,用group by写了一条去重的语句,delete from table where (id not in (select min(id) from table group by 字段1))
用查询分析器执行要2个多小时可以执行成功,但是用企业管理器执行总是报超时,登陆时间和查询时间都设置过了,似乎没什 ......
现在研究简单的东西:
Student(S#,Sname,Sage,Ssex) 学生表
Course(C#,Cname,T#) 课程表
SC(S#,C#,score) 成绩表
Teacher(T#,Tname) 教师表
问题:
SQL code:
1、查询“001”课程比“002”课程成绩高的所有学生的学号;
select a.S# from (select s#,score from SC where C#='001') a,(se ......
select a.fyear,b.fname,
'1月'=case when fperiod=1 then sum(a.fendbal) else 0 end ,
'2月'=case when fperiod=2 then sum(a.fendbal) else 0 end ,
'3月'=case when fperiod=3 then sum(a.fendbal) else 0 end ,
'4月'=case when fperiod=4 then sum(a.fendbal) else ......
sql数据库里大部份表被注入" <script src=http://z360.net> </script>"之类,程序已经在修改了.
是用木马注入的吗?如果是木马注入的我该在哪里杀木马,客户端还是服务器端
肯定是你程序没有过滤SQL注入。
检查程序参数程序。
我现在限制的是在get传值的时候,和一切用户有输入的地方, ......
String sql="insert into author values(?,?, ?);";
super.updateBySql(sql, new IParamBinding(){
public void bindParam(PreparedStatement pstmt) throws SQLException{
System.out.print("asd");
pstmt.setInt(1, model.getId());
pstmt.setString(2,model.getFirstn ......