我需要实现一种在不同条件下进行查询的方法。我不想每次都做一个新的准备语句,因为这就是为什么我首先使用准备好的语句。基本上,我有三个条件。String sql = "select * from t where attr1 = ? and attr2 = ? and attr3 = ?所以我可能最终需要像下面这样的查询
String sql
我正在尝试理解Describe语句的输出。考虑一个查询:Describe Select 1 from TableName where attr1='Val1' and attr2='Val2'
其中一个输出行是“”,它估计在使用相同的where子句(attr1='Val1‘和attr2='Val2')执行select查询时将访问<