09 2016 档案

摘要:easy_install mysql-connector-python >>>import mysql.connector as conner >>> conn = conner.connect(user="root", passwd="kaimen", db="zentao", port=3306 阅读全文
posted @ 2016-09-29 06:00 功夫 熊猫 阅读(2726) 评论(0) 推荐(0) 编辑
摘要:SHOW PROCESSLISTor show status where `variable_name` = 'Threads_connected'; 阅读全文
posted @ 2016-09-29 04:48 功夫 熊猫 阅读(274) 评论(0) 推荐(0) 编辑
摘要:总结,int(M) zerofill,加上zerofill后M才表现出有点点效果,比如 int(3) zerofill,你插入到数据库里的是10,则实际插入为010,也就是在前面补充加了一个0.如果int(3)和int(10)不加zerofill,则它们没有什么区别.M不是用来限制int个数的.in 阅读全文
posted @ 2016-09-28 07:12 功夫 熊猫 阅读(14217) 评论(0) 推荐(4) 编辑
摘要:Configure Amazon RDS mysql to store Chinese Characters https://dev.mysql.com/doc/refman/5.7/en/charset-applications.html http://docs.aws.amazon.com/AW 阅读全文
posted @ 2016-09-27 08:53 功夫 熊猫 阅读(806) 评论(0) 推荐(0) 编辑
摘要:http://dev.mysql.com/doc/refman/5.7/en/identifiers.html http://dev.mysql.com/doc/refman/5.7/en/identifiers.html The following table describes the maxi 阅读全文
posted @ 2016-09-23 04:50 功夫 熊猫 阅读(467) 评论(0) 推荐(0) 编辑
摘要:http://skeletoncoder.blogspot.com/2006/10/jdbc-tutorials-commit-or-rollback.html JDBC Tutorials: Commit or Rollback transaction in finally block In mo 阅读全文
posted @ 2016-09-23 02:59 功夫 熊猫 阅读(533) 评论(0) 推荐(0) 编辑
摘要:https://www.techonthenet.com/mysql/loops/leave.php This MySQL tutorial explains how to use the LEAVE statement in MySQL with syntax and examples. http 阅读全文
posted @ 2016-09-22 08:02 功夫 熊猫 阅读(1038) 评论(0) 推荐(0) 编辑
摘要:今天用到了MySql里的isnull才发现他和MSSQL里的还是有点区别,现在简单总结一下: mysql中isnull,ifnull,nullif的用法如下: isnull(expr) 的用法:如expr 为null,那么isnull() 的返回值为 1,否则返回值为 0。 mysql> selec 阅读全文
posted @ 2016-09-21 05:13 功夫 熊猫 阅读(622) 评论(0) 推荐(0) 编辑
摘要:https://code.tutsplus.com/articles/an-introduction-to-stored-procedures-in-mysql-5--net-17843 MySQL 5 introduced a plethora of new features - stored p 阅读全文
posted @ 2016-09-21 02:32 功夫 熊猫 阅读(274) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/4862911/how-to-throw-an-error-in-mysql-procedure 9down votefavorite What is the mechanism to force the MySQL to thr 阅读全文
posted @ 2016-09-20 08:46 功夫 熊猫 阅读(448) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/jobs/124781/principal-data-scientist-concur-technologies-inc?med=clc&ref=small-sidebar-tag-themed-python Job Description Be a 阅读全文
posted @ 2016-09-20 08:39 功夫 熊猫 阅读(530) 评论(0) 推荐(0) 编辑
摘要:https://www.sitepoint.com/cursors-mysql-stored-procedures/ After my previous article on Stored Procedures was published on SitePoint, I received quite 阅读全文
posted @ 2016-09-19 13:53 功夫 熊猫 阅读(466) 评论(0) 推荐(0) 编辑
摘要:https://blueprints.launchpad.net/myconnpy/+spec/sp-multi-resultsets Calling a stored procedure can produce multiple result sets. They should be retrie 阅读全文
posted @ 2016-09-17 08:18 功夫 熊猫 阅读(367) 评论(0) 推荐(0) 编辑
摘要:12down votefavorite 8 8 http://stackoverflow.com/questions/31748278/how-do-you-install-mysql-connector-python-development-version-through-pip/34027037 阅读全文
posted @ 2016-09-17 07:40 功夫 熊猫 阅读(685) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/cookiehu/p/4994278.html 定义异常捕获类型及处理方法: 这里面需要注意几点: a、condition_value [,condition_value],这个的话说明可以包括多种情况(方括弧表示可选的),也就是一个handler可以定 阅读全文
posted @ 2016-09-15 07:23 功夫 熊猫 阅读(12055) 评论(0) 推荐(0) 编辑
摘要:http://www.java2s.com/Code/SQL/Cursor/Outputdatainacursor.htm 阅读全文
posted @ 2016-09-15 03:04 功夫 熊猫 阅读(272) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/5669878/when-to-close-cursors-using-mysqldb I'm building a WSGI web app and I have a MySQL database. I'm using MySQ 阅读全文
posted @ 2016-09-15 02:45 功夫 熊猫 阅读(1036) 评论(0) 推荐(0) 编辑
摘要:MySQL Cursor Summary: in this tutorial, you will learn how to use MySQL cursor in stored procedures to iterate through a result set returned by a SELE 阅读全文
posted @ 2016-09-15 02:25 功夫 熊猫 阅读(1230) 评论(0) 推荐(0) 编辑
摘要:http://pymssql.org/en/latest/pymssql_examples.html Example scripts using pymssql module. Basic features (strict DB-API compliance) from os import gete 阅读全文
posted @ 2016-09-14 08:28 功夫 熊猫 阅读(2239) 评论(0) 推荐(0) 编辑
摘要:http://wwty.iteye.com/blog/698239 mysql存储过程也提供了对异常处理的功能:通过定义HANDLER来完成异常声明的实现 语法如下: DECLARE handler_type HANDLER FOR condition_value[,...] sp_statemen 阅读全文
posted @ 2016-09-14 06:08 功夫 熊猫 阅读(8548) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/jobs/116486/software-development-engineer-database-services-amazon?med=clc&ref=small-sidebar-tag-themed-python distributed en 阅读全文
posted @ 2016-09-14 05:18 功夫 熊猫 阅读(256) 评论(0) 推荐(0) 编辑
摘要:http://flylib.com/books/en/1.142.1.125/1/ Using Stored Programs with MySQLdb The techniques for calling stored programs with MySQLdb differ only sligh 阅读全文
posted @ 2016-09-14 02:58 功夫 熊猫 阅读(313) 评论(0) 推荐(0) 编辑
摘要:http://www.rodneyoliver.com/blog/2013/08/08/retrieving-out-params-from-a-stored-procedure-with-python/ AUG 8TH, 2013 I was hacking some python today w 阅读全文
posted @ 2016-09-14 01:37 功夫 熊猫 阅读(328) 评论(0) 推荐(0) 编辑
摘要:https://geert.vanderkelen.org/2014/results-after-procedure-call/ Problem Using MySQL Connector/Python, you are calling a stored procedure which is als 阅读全文
posted @ 2016-09-14 01:24 功夫 熊猫 阅读(337) 评论(0) 推荐(0) 编辑
摘要:kider 电梯直达 1# 发表于 2010-8-31 16:06:04 | 只看该作者 |倒序浏览 |阅读模式 出处:mysqlpub.comMySQL中有两个函数来计算上一条语句影响了多少行,不同于SqlServer/Oracle,不要因为此方面的差异而引起功能问题:1,判断Select得到的行 阅读全文
posted @ 2016-09-13 06:10 功夫 熊猫 阅读(315) 评论(0) 推荐(0) 编辑
摘要:Table 12.18 Information Functions NameDescription BENCHMARK() Repeatedly execute an expression CHARSET() Return the character set of the argument COER 阅读全文
posted @ 2016-09-13 06:06 功夫 熊猫 阅读(303) 评论(0) 推荐(0) 编辑
摘要:http://dev.mysql.com/doc/refman/5.7/en/get-diagnostics.html SQL statements produce diagnostic information that populates the diagnostics area. The GET 阅读全文
posted @ 2016-09-13 04:45 功夫 熊猫 阅读(1641) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/qixuejia/archive/2010/12/21/1913203.html sql server中变量要先申明后赋值: 局部变量用一个@标识,全局变量用两个@(常用的全局变量一般都是已经定义好的); 申明局部变量语法:declare @变量名 数据 阅读全文
posted @ 2016-09-13 03:53 功夫 熊猫 阅读(4352) 评论(0) 推荐(1) 编辑
摘要:http://www.mysqltutorial.org/mysql-signal-resignal/ Summary: in this tutorial, you will learn how to use SIGNAL and RESIGNAL statements to raise error 阅读全文
posted @ 2016-09-10 07:57 功夫 熊猫 阅读(745) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/crazylaa/article/details/5368421 http://blog.csdn.net/crazylaa/article/details/5368421 有时候,不希望存储过程抛出错误中止执行,而是希望返回一个错误码。 MySQL 支持异 阅读全文
posted @ 2016-09-10 02:11 功夫 熊猫 阅读(612) 评论(0) 推荐(0) 编辑
摘要:Summary: this tutorial shows you how to use MySQL handler to handle exceptions or errors encountered in stored procedures. When an error occurs inside 阅读全文
posted @ 2016-09-09 08:23 功夫 熊猫 阅读(332) 评论(0) 推荐(0) 编辑
摘要:MySQL: @variable vs. variable. Whats the difference? MySQL: @variable vs. variable. Whats the difference? up vote351down votefavorite 121 In another q 阅读全文
posted @ 2016-09-09 08:05 功夫 熊猫 阅读(444) 评论(0) 推荐(0) 编辑
摘要:http://www.mysqltutorial.org/mysql-error-handling-in-stored-procedures/ mysql存储过程中的异常处理 定义异常捕获类型及处理方法: DECLARE handler_action HANDLER FOR condition_va 阅读全文
posted @ 2016-09-09 06:38 功夫 熊猫 阅读(396) 评论(0) 推荐(0) 编辑
摘要:DEBUGGING STORED PROCEDURES Over the past several weeks, we’ve been working on debugging a stored procedure bug for a client. Coming from a software d 阅读全文
posted @ 2016-09-09 05:54 功夫 熊猫 阅读(305) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/exmyth/p/3303470.html 14.1.1 创建存储过程 MySQL中,创建存储过程的基本形式如下: CREATE PROCEDURE sp_name ([proc_parameter[,...]]) [characteristic ... 阅读全文
posted @ 2016-09-09 04:51 功夫 熊猫 阅读(331) 评论(0) 推荐(0) 编辑
摘要:在命令行下mysql的数据导出有个很好用命令mysqldump,它的参数有一大把,可以这样查看: mysqldump 最常用的: mysqldump -uroot -pmysql databasefoo table1 table2 > foo.sql 这样就可以将数据库databasefoo的表ta 阅读全文
posted @ 2016-09-03 05:38 功夫 熊猫 阅读(714) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示