码迷,mamicode.com
首页 >  
搜索关键字:cursor sharing    ( 3039个结果
python类库26[sqlite]
一 sqlite 与 python 的类型对应二 实例importsqlite3defsqlite_basic():#Connecttodbconn=sqlite3.connect('test.db')#createcursorc=conn.cursor()#Createtablec.execute...
分类:数据库   时间:2014-07-07 14:15:19    阅读次数:239
SQLServer 删除所有表的外键约束
DECLARE c1 cursor for select 'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; ' from sysobjects where xtype = 'F'ope...
分类:数据库   时间:2014-07-03 09:19:58    阅读次数:273
SQL2008R2的 遍历所有表更新统计信息 和 索引重建
----------------------------------------------【2.以下是更新统计信息】 DECLARE UpdateStatisticsTables CURSOR READ_ONLY FOR SELECT sst.name, Sche...
分类:数据库   时间:2014-07-02 23:25:15    阅读次数:325
sqlite3 on python for newbies
python 集成了 sqlite3 ,其接口很简单:import sqlite3db_connection = sqlite3.connect(db_filename)db_cursor = db_connection.cursor()db_cursor.execute('select * fro...
分类:数据库   时间:2014-07-02 17:46:35    阅读次数:306
python mysql模块
#!/usr/bin/pythonimportMySQLdbdefnew_mail_mysql(ak):printakconn=MySQLdb.connect(host=‘m3306.sae.sina.com.cn‘,user=‘sae_ol‘,passwd=‘7b149edb22ae7526‘,db=‘sae‘,port=3306)cur=conn.cursor()sql="selectnamefromappwhereaccesskey=‘%s‘"%akcur.execute(sql)app_name=cu..
分类:数据库   时间:2014-07-02 16:14:12    阅读次数:285
存储过程使用动态游标一例
数据表结构如下;SQL>descrecord;NameTypeNullableDefaultComments----------------------------------------------RECORD_GUIDVARCHAR2(50)YDNISVARCHAR2(15)YANIVARCHAR2(15)YSTARTTIMEDATEYENDTIMEDATEYSTAFFIDVARCHAR2(10)YAGENTIDVARCHAR2(10)YEXTENSIONVARCHAR2(20)Y..
分类:其他好文   时间:2014-07-02 06:16:00    阅读次数:244
mysql 存储过程 示例代码
mysql 存储过程 示例代码...
分类:数据库   时间:2014-07-01 11:28:59    阅读次数:239
mysql 存储过程 示例代码
mysql 存储过程 示例代码...
分类:数据库   时间:2014-06-30 18:40:09    阅读次数:243
ubuntu installation note
14.04 LTSenabling vnc:0. apt-get install dconf-tools1.click icon "search your computer and online sources"desktop sharing, enable2. create file and na...
分类:其他好文   时间:2014-06-27 17:08:58    阅读次数:195
Devstack: A copy of worked local.conf I'm sharing with you.
# Sample ``local.conf`` for user-configurable variables in ``stack.sh`` # NOTE: Copy this file to the root ``devstack`` directory for it to # work properly. # ``local.conf`` is a user-maintained set...
分类:其他好文   时间:2014-06-26 11:41:09    阅读次数:272
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!