一 sqlite 与 python 的类型对应二 实例importsqlite3defsqlite_basic():#Connecttodbconn=sqlite3.connect('test.db')#createcursorc=conn.cursor()#Createtablec.execute...
分类:
数据库 时间:
2014-07-07 14:15:19
阅读次数:
239
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
----------------------------------------------【2.以下是更新统计信息】 DECLARE UpdateStatisticsTables CURSOR READ_ONLY FOR SELECT sst.name, Sche...
分类:
数据库 时间:
2014-07-02 23:25:15
阅读次数:
325
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
#!/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
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
# 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