“delete from test”
不会把test表删掉吗??

解决方案 »

  1.   

    当然是null  因为abc=null
      

  2.   

    数据库里abc的值是“null”字符串,不是空啊
    我要做的是清空啊,怎么办?
      

  3.   

    abc = ""
    这样数据库里abc的值变成“空格”还是什么的
    不是刚刚建表的时候显示的<NULL>
      

  4.   

    update test set abc=null
    而你写的相当于'null'字符串
      

  5.   

    我用以下程序调试
    <%@ include file="article.jsp"%>
    <%
    int a;
    ResultSet rs=stmt.executeQuery("select * from test2");
    rs.next();
    String abc=rs.getString("abc");
    if(abc==null)
    {
    a=1;
    }
    else
    {
    a=2;
    }
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <%=a%>
    </body>
    </html>
    结果为:2
    说明数据库里abc并不是空
      

  6.   

    谢谢各位朋友
    特别感谢:fangcheng007(城城)
    原来清空的语句是update test set abc=null谢谢各位