码迷,mamicode.com
首页 >  
搜索关键字:cursor    ( 2614个结果
canvas——画板
注意部分:canvas的height和width不能再css中设定,应该在html中设定,否则会影响页面的分辨率。效果图:图1:代码css:#canvas{ cursor: crosshair;}button{ width: 80px;}.yellowBtn{ background...
分类:其他好文   时间:2014-07-08 22:31:32    阅读次数:223
MySQL常用SQL语句(Python实现学生、课程、选课表增删改查)
以基本的学生选课为例,建立选课数据库,学生、班级、选课信息三张表,并分别对表进行插删改操作: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
Linux-0.11源代码阅读二 实模式到保护模式
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
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!