When using the prepare statement I'm creating a string that contains my select statement... I want to compare a numeric field within my string. For example I have batch# which is numeric, how can I say where batch# = 21
Software/Hardware used:
ASKED:
April 2, 2010 7:11 PM
UPDATED:
April 5, 2010 7:27 PM
Note that technically the name “batch#” is invalid in SQL. The “#” (hash or pound symbol) is not in past SQL language character sets.
You might need to enclose the column name in full-quotes (double quote marks, i.e., [ " ]) or maybe even create a view that renames the column.
Tom