MySQL 5.1
Jan Kneschke MySQL AB
Past, Present and Future
Agenda
Past S Q L T r e e s m e e ts D y n a m ic S Q L P re s e n t E v e n ts P a r titio n in g F u tu r e V e r tic a l P a r titio n in g
About the Presenter
●
Jan Kneschke Senior Developer in the MySQL Network Team jan@mysql.com
●
● ●
Drives the development of the highperformance web-server lighttpd Was trainer and consultant at MySQL before becoming a developer
●
Raise your hands
● ● ●
Who is using MySQL 4.1 or older Who is using MySQL 5.0, 5.1 or later Who uses Prepared Statements Stored Procedures Partitioning
● ● ● ●
Who is using one of the features with another vendors RDBMS
Back in Time
●
Last years tutorial concentrated on Stored Procedures, VIEWs and Triggers Examples can be found at http://jan.kneschke.de/projects/mysql/sp/ Who has attended last years tutorial
● ●
●
Prepared Statements
First available in MySQL 4.1 S p lit u p th e e x e c u tio n o f S Q L s ta te m e n ts in to a P R E P A R E a n d a E X E C U T E p h a s e A t best P R E P A R E once, E X E C U TE m u ltip le tim e s P r e v e n ts S Q L -in je c tio n
Prepared Statements
PREPARE s FROM 'SELECT * FROM tbl WHERE id = '; EXECUTE s USING @id; DEALLOCATE PREPARE s;
Stored Procedures
A programming language running in the context of the DBMS U s e s th e s y n ta x d e fin e d in th e S Q L :2 0 0 3 s ta n d a r d P r o v id e s C o n tr o l-F lo w , L o o p s , E x c e p tio n s , C u r s o r s , ... S P s a r e u s e d b y T r ig g e r s , E v e n ts , F u n c tio n s
Stored Procedures
CREATE PROCEDURE fill_table () BEGIN DECLARE n INT DEFAULT 1000; ins_loop: LOOP INSERT INTO tbl VALUES (n); SET n = n - 1; IF (NOT n) THEN LEAVE ins_loop; END IF; END LOOP ins_loop; END$$
Dynamic SQL
fill_table() works only against one table S Q L S ta te m e n ts in S P s a r e s ta tic
- mysqlalter > the mysql 5.1 guide download
-
the mysql 5.1 guide download
下载该文档 文档格式:PDF 更新时间:2007-02-01 下载次数:0 点击次数:1文档基本属性 文档语言: English 文档格式: pdf 文档作者: Paul Schacht 关键词: 主题: 备注: 点击这里显示更多文档属性 经理: 单位: SUNY Geneseo 分类: 创建时间: 上次保存者: 修订次数: 编辑时间: 文档创建者: 修订: 加密标识: 幻灯片: 段落数: 字节数: 备注: 演示格式: 上次保存时间:
- 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
- PDF格式下载
- 更多文档...
-
上一篇:帐号:USERNAME@主机位置(root@localhost)
下一篇:脚本之家:mysql
点击查看更多关于mysqlalter的相关文档
- 您可能感兴趣的
- mysqlalter mysqlaltertable mysqlaltercolumn mysqlalter约束 alter修改列mysql mysqlalter索引 alter altertable alterego sqlalter
- 大家在找
-
- · 暴风影音加速器下载
- · 四川省机关事务管理局
- · 制浆原理与工程答案
- · 前列闭通栓
- · 市场营销ppt吴勇
- · 袛袌袛胁碌蟹效校褬褬袣褏禄褖覒袔碌歇袥袛掳卸褩袨褦褍覒褉掳褢
- · 贵州教育厅网站
- · 福州工勤人员工资
- · 地大机械设计试卷doc
- · 榨汁机用单片机电路图
- · 东奥会计网校登录
- · 07版word目录自动生成
- · 七A英语第一课预习笔记
- · 天津散热器厂家
- · 教育专业论文
- · 港版iphone4现在价格
- · multisim11视频教程
- · 现代工程图学课件下载
- · 网络嗅探器论文
- · 汽车维修工职业技能鉴定题库免费下载
- · 6成80后未婚q
- · 中兴v880官方usb驱动
- · 独生子女问题
- · 旁多水利枢纽
- · qq华夏怎么进阶
- · 成都广泰数控
- · 安徽蒙城杀人命案
- · excel2003模拟
- · 四氟法兰垫片
- · 东莞cad
- 赞助商链接