其实什么 只有有一点点问题
String sql = "select * from city where father = "+father+"";
这一句写错了.应该是这样
String sql = "select * from city where father = '"+father+"'";
加上双引号呀,father是一个字符串.要加上单引号.
String sql = "select * from city where father = "+father+"";
这一句写错了.应该是这样
String sql = "select * from city where father = '"+father+"'";
加上双引号呀,father是一个字符串.要加上单引号.
[此贴子已经被作者于2007-8-27 18:01:41编辑过]