南港摳頂

南港真是鳥不生蛋 卻是跟台北市一樣貴的物價

2009年7月21日 星期二

Retrieving Auto Generated Key from DB

Set oConn.Execute("INSERT INTO yourTable (field1, field2) VALUES ('Hello','World');") Set oRs = oConn.Execute("SELECT @@IDENTITY FROM yourTable") iAutoGeneratedID = oRs(0) ---- Set rs = dbCon.Execute(strSQL) Dim newID newID = rs.Fields("NewID").value
張貼者: Clotho 於 1:47 上午
標籤: ASP, SQL, WWW

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

網誌存檔

  • ►  2010 (23)
    • ►  12月 (2)
    • ►  8月 (2)
    • ►  7月 (2)
    • ►  6月 (1)
    • ►  4月 (6)
    • ►  3月 (7)
    • ►  2月 (2)
    • ►  1月 (1)
  • ▼  2009 (42)
    • ►  11月 (4)
    • ►  10月 (2)
    • ►  9月 (13)
    • ►  8月 (2)
    • ▼  7月 (8)
      • Install and Enable Remote Desktop in Windows XP Ho...
      • Convert and Upgrade Windows XP Home to Professiona...
      • Tabbed Remote Desktop
      • Tabbed Putty
      • Top, HTop
      • 使用 net use 指令登入及刪除網芳帳號(適用 XP、2003)
      • Retrieving Auto Generated Key from DB
      • Java: How To Get Auto Increment Values After SQL I...
    • ►  5月 (1)
    • ►  2月 (5)
    • ►  1月 (7)
  • ►  2008 (32)
    • ►  12月 (2)
    • ►  11月 (4)
    • ►  9月 (4)
    • ►  8月 (2)
    • ►  7月 (3)
    • ►  6月 (6)
    • ►  5月 (3)
    • ►  4月 (7)
    • ►  3月 (1)
  • ►  2007 (33)
    • ►  12月 (8)
    • ►  11月 (7)
    • ►  10月 (2)
    • ►  9月 (3)
    • ►  6月 (4)
    • ►  5月 (2)
    • ►  2月 (7)
  • ►  2006 (1)
    • ►  11月 (1)
  • ►  2005 (1)
    • ►  11月 (1)

關於我自己

Clotho
檢視我的完整簡介
輕柔雅緻主題. 技術提供:Blogger.