g********r 发帖数: 187 | 1 I have a table -- orders(order_id, order_status).
order_id is integer.
I am going to find the biggest integer number of order_id.
I write the following code: | m******t 发帖数: 2416 | 2
catch (Exception e) {} is simply bad programming style. Why don't
you catch SQLException and print it?
【在 g********r 的大作中提到】 : I have a table -- orders(order_id, order_status). : order_id is integer. : I am going to find the biggest integer number of order_id. : I write the following code:
| y***i 发帖数: 279 | 3
^^^^^^^
^^^^^^^^^^^^^
R u sure this could be compiled? never heard of that a null reference
could be used for a method call in java, never seen such expression
in java either.
【在 g********r 的大作中提到】 : I have a table -- orders(order_id, order_status). : order_id is integer. : I am going to find the biggest integer number of order_id. : I write the following code:
|
|