注意部分:canvas的height和width不能再css中设定,应该在html中设定,否则会影响页面的分辨率。效果图:图1:代码css:#canvas{ cursor: crosshair;}button{ width: 80px;}.yellowBtn{ background...
分类:
其他好文 时间:
2014-07-08 22:31:32
阅读次数:
223
以基本的学生选课为例,建立选课数据库,学生、班级、选课信息三张表,并分别对表进行插删改操作:importMySQLdb
try:
conn=MySQLdb.connect(host=‘localhost‘,user=‘root‘,passwd=‘root‘,db=‘xuanke‘,port=3306)
cur=conn.cursor()
cur.execute("CREATEDATABASExuanke")
..
分类:
数据库 时间:
2014-07-08 08:05:43
阅读次数:
479
DECLARE @TableName VARCHAR(119)DECLARE @TableID INTDECLARE @ColName VARCHAR(111)DECLARE Table_Cursor CURSOR FOR SELECT [name],id FROM sysobjects WHERE...
分类:
数据库 时间:
2014-07-06 15:11:47
阅读次数:
280
bootsect部分已经执行完成,程序也跳转到setup部分:
start:
! ok, the read went well so we get current cursor position and save it for
! posterity.
mov ax,#INITSEG ! this is done in bootsect already, but...
mov...
分类:
系统相关 时间:
2014-07-03 18:38:19
阅读次数:
329
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