mysql
yuyunliuhen
这个作者很懒,什么都没留下…
展开
-
MYSQL 语法常用
独立新建表 CREATE TABLE TT (ID INT, NAME VARCHAR(20)); 从已知表复制表 CREATE TABLE TT AS SELECT * FROM CC; 2011-01-07 22:18:00 Reference:http://justcoding.javaeye.com/blog/672066Mysql之inner join,left join,right join详解首先借用官方的解释下:inner join(等值原创 2011-01-08 11:18:00 · 692 阅读 · 0 评论 -
install and use odbc at linux
//install unixodbcdownload from 点击打开链接$tar zxvf unixODBC-2.3.0.tar.gz$cd unixODBC-2.3.0$ cmake -G "Unix Makefiles" -DWITH_UNIXODBC=1$make$make install//install mysql-connectordownload from 点击打开链接$tar原创 2012-08-18 09:01:08 · 2075 阅读 · 0 评论 -
用mysqlslap进行压力测试
lee@ubuntu:~$ mysqlslap --help mysqlslap Ver 1.0 Distrib 5.1.49, for debian-linux-gnu (x86_64) Copyright (C) 2005 MySQL AB This software comes with ABSOLUTELY NO WARRANTY. This is free software,原创 2011-01-22 22:32:00 · 1331 阅读 · 0 评论 -
MYSQL 操作常用
控制台进入MYSQL mysql -uroot -p enter password:****** mysql> 添加新用户 格式: grant select,insert,update,delete on 数据库.* to 用户名@登录主机 identified by "密码" mysql> grant select,insert,update,delete on *.* t原创 2009-09-22 15:44:00 · 733 阅读 · 0 评论 -
A simple mysql sample
#include #include #include #include #include #pragma comment(lib,"libmysql") int _tmain(int argc, _TCHAR* argv[]) { MYSQL* mysql; MYSQL_RES* results; MYSQL_ROW record; mysql = mysql_init(NULL原创 2009-09-17 19:32:00 · 1078 阅读 · 0 评论