如果字段是char类型,SQL语句应是这样:
  select * from aa.db where field = 'data'
当然要有错误。
你可以手工在edit2.text加上''。