在Linux上编译安装php开发环境(install mysql5.6)-3
2015-02-04 16:05
861 查看
Executes the given SQL statement, which may return multiple results. In some (uncommon) situations, a single SQL statement may return multiple result sets and/or update counts. Normally you can ignore this unless you are (1) executing a stored procedure that you know may return multiple results or (2) you are dynamically executing an unknown SQL string.
The execute method executes an SQL statement and indicates the form of the first result. You must then use the methods getResultSet or getUpdateCount to retrieve the result, and getMoreResults to move to any subsequent result(s).
Parameters:
sql - any SQL statement
Returns:
true if the first result is a ResultSet object; false if it is an update count or there are no results
该方法是为了执行参数sql语句的,他可能返回多种返回值。在一些不常见的情况下,一个语句有可能返回多个返回值(返回值集或更新个数)。一般情况下,我们可以不必在意这个问题,除非是用来执行一个存储过程或者执行一个未知的动态的sql语句。
这个execute方法执行一个sql语句并且指向第一个返回值。你必须使用getResultSet或者getUpdateCount方法去获得返回值,也可以使用getMoreResults来获得一系列的返回值。
参数:
任意的sql语句
返回值:
---------------------------------------------------------------------------------------------------------------------------------------------------------------
true表示第一个返回值是一个ResultSet对象;false表示这是一个更新个数或者没有结果集。
The execute method executes an SQL statement and indicates the form of the first result. You must then use the methods getResultSet or getUpdateCount to retrieve the result, and getMoreResults to move to any subsequent result(s).
Parameters:
sql - any SQL statement
Returns:
true if the first result is a ResultSet object; false if it is an update count or there are no results
该方法是为了执行参数sql语句的,他可能返回多种返回值。在一些不常见的情况下,一个语句有可能返回多个返回值(返回值集或更新个数)。一般情况下,我们可以不必在意这个问题,除非是用来执行一个存储过程或者执行一个未知的动态的sql语句。
这个execute方法执行一个sql语句并且指向第一个返回值。你必须使用getResultSet或者getUpdateCount方法去获得返回值,也可以使用getMoreResults来获得一系列的返回值。
参数:
任意的sql语句
返回值:
---------------------------------------------------------------------------------------------------------------------------------------------------------------
true表示第一个返回值是一个ResultSet对象;false表示这是一个更新个数或者没有结果集。
相关文章推荐
- 在Linux上编译安装php开发环境(install apache)-2
- Linux\CentOS系统下的服务器搭建,下载编译环境,安装vsFtpd、nginx、MySQL、JDK、Tomcat、PHP
- Linux 环境下编译安装MySQL5.6
- Linux\CentOS系统下的服务器搭建,下载编译环境,安装vsFtpd、nginx、MySQL、JDK、Tomcat、PHP
- wdOS系统下源码编译安装LAMP环境(linux+apache+php+mysql)
- CentOS-6.5下编译安装LNMP环境【nginx1.8.1、mysql5.5.43、php 5.6】
- 在Linux上编译安装php开发环境―1
- LNMP(linux+nginx+mysql+php)环境的编译安装
- Linux(6.4)+Nginx(1.4.1)+Mysql(5.6.12)+Php(5.5.0)源码编译安装 环境介绍
- 源码编译安装,搭建LNMP环境(Linux+Nginx+MySQL+PHP)
- LNMP环境编译安装centos5x/nginx_1.4/mysql_5.6/php_5.4
- linux下为已经编译好的php环境添加mysql扩展(php安装完成后如何添加mysql扩展)
- Linux环境编译安装Mysql以及PHP中文乱码解决
- Linux 环境下编译安装MySQL5.6的笔记记录
- Linux 环境下安装 Nginx+php+mysql 开发环境
- 在WdOS系统下源代码编译安装LNMP环境(Linux+Ngnix+Mysql+Php)
- 生产环境Centos LNMP编译安装nginx-1.6 MySQL-5.6 php-5.5
- Linux编译安装LAMP环境(php5.6)
- CentOS 7源码编译安装PHP5.6和Nginx1.7.9及MySQL(搭建LNMP环境)
- (转帖)Linux下面PHP开发环境源码安装-php,mysql,apache以及图形支持库GD的安装