Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
String sql = "select * from db1 where 0 = 0"
If CheckBox1 Is Checked Then sql = sql + " AND Col1 =" + TextBox1
If CheckBox2 Is Checked Then sql = sql + " AND Col2 =" + TextBox2
If WhereClause = "" Then
WhereClause = "WHERE " & SubClause
Else
WhereClause = WhereClause & " AND " & SubClause
End If
database optimizers are smart enough to "optimize away" those types of conditionsThings like 0=0 or 0=1 will be evaluated on every record