connection.prepareStatement(String sql, String[] columnName) 这个方法具体怎么用啊??

2024-12-19 12:11:09
推荐回答(1个)
回答1:

Parameters:
sql - an SQL statement that may contain one or more '?' IN
parameter placeholders
columnNames - an array of column names indicating the columns
that should be returned from the inserted row or rows////////////////////参数说明
Returns:
a new PreparedStatement object, containing the
pre-compiled statement, that is capable of returning the
auto-generated keys designated by the given array of column
names

参数说明中讲了,insert时,返回的列