专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
1.首先创建两个表 sql语句如下: users:(用户表) CREATE TABLE users ( id bigint, departid bigint, name text ) depart:(部门表) CREATE TABLE depart ( id bigint, departname text ) users表中的departid与depart中的id相关联。 2.插入数据 users:(用户表) insert into users(id,departid,name) values(1,1,'a') insert into users(id,d [阅读全文] [PDF]
今天在Access上写Update查询的时候一不小心将 updateemployeesetstatus=1,name=’sink’whereid=99 写成 updateemployeesetstatus=1andname=’sink’whereid=99 结果status字段被更新为0, 我大吃一惊,怎么可能是0呢,对于Access不是很熟的我十分不解. 叫来同事,他看了看说是Access把后面的andname=’sink’当成布尔语句了, 我茅塞顿开,经过讨论后把我的理解写下来: 这里加上括号有助理解 updateemployeesetstatus=( [阅读全文] [PDF]
用如下方法可以直接得到影响的行数:<%dim conndim sqldim lngrecssql=\"update table1 set field1=\'good\'\"set conn=server.createobject(\"adodb.connection\")conn.open dsnconn.execute sql,lngrecsconn.close:set conn=nothingresponse.write lngrecs%>用存储过程也有同样的功能:<%dim cmddim lngrecsdim [阅读全文] [PDF]
1 共3条 分1页