1.http的定位标记
<a href="#书签名称" target="窗口名称">超连链标题名称</a>
在不同页面要使用链接的地址:
<a href="URL地址#书签名称" target="窗口名称">超链接标题名称</a>
链接到的目的地址:
<a name="书签名称">目标超链接名称</a>
name的属性值为该目标定位点的定位标记点名称,是给特定位置点(这个位置点也叫锚点)起个名称。
2.把数据库中的某个表的内容置空
update news
set baodaoid=null
3.asp中判断某个字符为空
<%for i=0 to rs1.fields.count-1
if isnull(rs1(i)) then
response.write ("<td><font size=2><b>"+"无"+"</b></font></td>")
else
response.write ("<td><font size=2><b>"+rs1(i)+"</b></font></td>")
end if
next%>
4.批量插入某个默认值
INSERT INTO Tab_Accounts
(accounts, Fld_PopedomID, Fld_Type)
SELECT accounts, 4 AS Expr1, 1 AS Expr2
FROM tab_userinfo
WHERE (accounts LIKE '%fb')
5.从2个不同的数据库中搜索
可以现建立一个视图, 这个视图从2个不同数据库中生成, 然后再选择;(从kjdx和newstest 2个库中进行选择。
SELECT b.ID, b.title, b.subtitle, b.class, b.sort, b.topic, b.author, b.source, b.creat, b.Ntime, b.[content], b.IsCheck, b.Pic, b.hits, b.isonline, b.editor, b.sContent,
dbo.xueshu.yugaoid, dbo.xueshu.baodaoid
FROM newstest.dbo.news AS b INNER JOIN
dbo.xueshu ON b.ID = dbo.xueshu.baodaoid