mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-07-10 10:57:10 +02:00
.github
bin
module
vendor
CPR
CivetWeb
ConcurrentQueue
Fmt
MDBC
client
cmake
include
libmariadb
man
CMakeLists.txt
mariadb_cancel.3
mariadb_connection.3
mariadb_dyncol_check.3
mariadb_dyncol_column_cmp_named.3
mariadb_dyncol_column_count.3
mariadb_dyncol_create_many_named.3
mariadb_dyncol_create_many_num.3
mariadb_dyncol_exists_named.3
mariadb_dyncol_exists_num.3
mariadb_dyncol_free.3
mariadb_dyncol_list_named.3
mariadb_dyncol_list_num.3
mariadb_dyncol_unpack.3
mariadb_dyncol_update_many_named.3
mariadb_dyncol_update_many_num.3
mariadb_get_infov.3
mariadb_reconnect.3
mariadb_rpl_close.3
mariadb_rpl_fetch.3
mariadb_rpl_get_optionsv.3
mariadb_rpl_open.3
mariadb_rpl_optionsv.3
mariadb_stmt_execute_direct.3
mariadb_stmt_fetch_fields.3
mysql_affected_rows.3
mysql_autocommit.3
mysql_change_user.3
mysql_close.3
mysql_commit.3
mysql_data_seek.3
mysql_errno.3
mysql_error.3
mysql_fetch_field.3
mysql_fetch_field_direct.3
mysql_fetch_fields.3
mysql_fetch_lengths.3
mysql_fetch_row.3
mysql_field_count.3
mysql_field_seek.3
mysql_field_tell.3
mysql_free_result.3
mysql_get_character_set_info.3
mysql_get_client_info.3
mysql_get_client_version.3
mysql_get_host_info.3
mysql_get_proto_info.3
mysql_get_server_info.3
mysql_get_server_version.3
mysql_get_socket.3
mysql_get_ssl_cipher.3
mysql_hex_string.3
mysql_info.3
mysql_init.3
mysql_kill.3
mysql_more_results.3
mysql_next_result.3
mysql_num_fields.3
mysql_num_rows.3
mysql_options.3
mysql_options4.3
mysql_optionsv.3
mysql_ping.3
mysql_query.3
mysql_read_query_result.3
mysql_real_connect.3
mysql_real_escape_string.3
mysql_real_query.3
mysql_refresh.3
mysql_reset_connection.3
mysql_rollback.3
mysql_row_seek.3
mysql_row_tell.3
mysql_select_db.3
mysql_send_query.3
mysql_server_end.3
mysql_server_init.3
mysql_session_track_get_first.3
mysql_session_track_get_next.3
mysql_set_character_set.3
mysql_set_server_option.3
mysql_shutdown.3
mysql_sqlstate.3
mysql_ssl_set.3
mysql_stat.3
mysql_stmt_affected_rows.3
mysql_stmt_attr_get.3
mysql_stmt_attr_set.3
mysql_stmt_bind_param.3
mysql_stmt_bind_result.3
mysql_stmt_close.3
mysql_stmt_data_seek.3
mysql_stmt_errno.3
mysql_stmt_error.3
mysql_stmt_execute.3
mysql_stmt_fetch.3
mysql_stmt_fetch_column.3
mysql_stmt_field_count.3
mysql_stmt_free_result.3
mysql_stmt_init.3
mysql_stmt_insert_id.3
mysql_stmt_more_results.3
mysql_stmt_next_result.3
mysql_stmt_num_rows.3
mysql_stmt_param_count.3
mysql_stmt_param_metadata.3
mysql_stmt_prepare.3
mysql_stmt_reset.3
mysql_stmt_result_metadata.3
mysql_stmt_row_seek.3
mysql_stmt_row_tell.3
mysql_stmt_send_long_data.3
mysql_stmt_sqlstate.3
mysql_stmt_store_result.3
mysql_stmt_warning_count.3
mysql_store_result.3
mysql_thread_end.3
mysql_thread_id.3
mysql_thread_init.3
mysql_use_result.3
mysql_warning_count.3
mariadb_config
plugins
scripts
unittest
win
win-iconv
CMakeLists.txt
COPYING.LIB
README
appveyor-download.bat
appveyor.yml
travis.sh
MaxmindDB
POCO
PUGIXML
SAJSON
SimpleIni
Squirrel
TinyDir
UTF8
ZMQ
xxHash
CMakeLists.txt
.gitignore
.gitmodules
CMakeLists.txt
LICENSE
README.md
43 lines
1.3 KiB
Groff
43 lines
1.3 KiB
Groff
.\" Automatically generated by Pandoc 2.5
|
|
.\"
|
|
.TH "mysql_stmt_affected_rows" "3" "" "Version 3.2.2" "MariaDB Connector/C"
|
|
.hy
|
|
.SS Name
|
|
.PP
|
|
mysql_stmt_affected_rows \- Returns the number of affected rows from
|
|
previous executed prepared statement
|
|
.SS Synopsis
|
|
.IP
|
|
.nf
|
|
\f[C]
|
|
#include <mysql.h>
|
|
|
|
my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);
|
|
\f[R]
|
|
.fi
|
|
.SS Description
|
|
.PP
|
|
Returns the number of affected rows by the last prepared statement
|
|
associated with mysql, if the operation was an \[lq]upsert\[rq] (INSERT,
|
|
UPDATE, DELETE or REPLACE) statement, or \-1 if the last prepared
|
|
statement failed.
|
|
.SS Parameter
|
|
.IP \[bu] 2
|
|
\f[C]stmt\f[R] \- a statement handle, which was previously allocated by
|
|
[mysql_stmt_init()](mysql_stmt_init().]]
|
|
.SS Notes
|
|
.IP \[bu] 2
|
|
When using \f[C]UPDATE\f[R], MariaDB will not update columns where the
|
|
new value is the same as the old value.
|
|
This creates the possibility that \f[C]mysql_stmt_affected_rows()\f[R]
|
|
may not actually equal the number of rows matched, only the number of
|
|
rows that were literally affected by the query.
|
|
.IP \[bu] 2
|
|
The \f[C]REPLACE\f[R] statement first deletes the record with the same
|
|
primary key and then inserts the new record.
|
|
This function returns the number of deleted records in addition to the
|
|
number of inserted records.
|
|
.SS See Also
|
|
.IP \[bu] 2
|
|
\f[B]mysql_stmt_insert_id(3)\f[R]
|