我向数据库(Sybase)中插入文本字段"text" ,文本字段太长,怎么办?有没有办法知道 “text”的长度?
jxnet 2005-04-12 04:31:42 代码如下:
Connection con = GoSql.createCon();
try
{
PreparedStatement ps = con.prepareStatement("update "+tab+" set c_text=?,hasText=3 where id="+id);
ps.setString(1,text);
ps.executeUpdate();
ps.close();
}catch(SQLException sqlex)
{
System.err.println(sqlex);
}