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