-
<?php
-
-
$sql = "SELECT * FROM `user` LIMIT 10" ;
-
{
-
}
-
-
?>
Located in /saemysql.class.php (line 39)
SaeObject | --SaeMysql
Method Summary
Methods
Constructor __construct (line
49)
构造函数
void
__construct ([
bool
$do_replication =
true])
- bool $do_replication: 是否支持主从分离,true:支持,false:不支持,默认为true
setAppname (line
105)
设置Appname
当需要连接其他APP的数据库时使用
void
setAppname (
string
$appname)
- string $appname
setAuth (line
74)
设置keys
当需要连接其他APP的数据库时使用
void
setAuth (
string
$akey,
string
$skey)
- string $akey: AccessKey
- string $skey: SecretKey
setCharset (line
117)
设置当前连接的字符集 , 必须在发起连接之前进行设置
void
setCharset (
string
$charset)
- string $charset: 字符集,如GBK,GB2312,UTF8