• 軟件測試技術
  • 軟件測試博客
  • 軟件測試視頻
  • 開源軟件測試技術
  • 軟件測試論壇
  • 軟件測試沙龍
  • 軟件測試資料下載
  • 軟件測試雜志
  • 軟件測試人才招聘
    暫時沒有公告

字號: | 推薦給好友 上一篇 | 下一篇

軟件測試開源工具Rational Robot SQABasic數據庫操作相關命令[2]

發布: 2009-11-18 11:16 | 作者: 不詳 | 來源: 領測軟件測試網采編 | 查看: 18次 | 進入軟件測試論壇討論

領測軟件測試網

       軟件測試開源工具Rational Robot SQABasic數據庫操作相關命令[2]   軟件測試工具

  關鍵字:SQABasic 數據庫 命令

  注解:

  對于SQL SELECT返回結果集的欄數目;對于UPDATE, INSERT, 或 DELETE返回受語句作用的行的數目。任何其它SQL語句返回0。如果函數在指定數據源不能執行此查詢,或如果連接不可用,則返回為負的錯誤編碼。

  如果SQLExecQuery被調用但連接上還有一些未處理結果,則這些等待結果被新的結果所代替。 SQLExecQuery Example

  This example performs a query on the data source.

  Sub main

  '' Declarations''

  Dim connection As Long

  Dim destination(1 To 50, 1 To 125) As Variant

  Dim retcode As long

  Dim outputStr as String

  Dim query as String

  '' open the connection

  connection = SQLOpen("DSN=SblTest",outputStr,prompt:=3)

  ''

  '' Execute the query

  query = "select * from customer"

  retcode = SQLExecQuery(connection,query)

  ''

  '' retrieve the first 50 rows with the first 6 columns of each row into

  '' the array destination, omit row numbers and put column names in the

  '' first row of the array

  retcode = SQLRetrieve(connection:=connection,destination:=destination,columnNames:=1,rowNumbers:=0,maxRows:=50, maxColumns:=6,fetchFirst:=0)

  '' Get the next 50 rows of from the result set

  retcode = SQLRetrieve(connection:=connection,destination:=destination,columnNames:=1,rowNumbers:=0,maxRows:=50, maxColumns:=6)

  '' Close the connection

  retcode = SQLClose(connection)

  End Sub

  SQLGetSchema功能函數

 

延伸閱讀

文章來源于領測軟件測試網 http://www.anti-gravitydesign.com/

TAG: rational Rational RATIONAL robot Robot ROBOT SQABasic 軟件測試 數據庫

21/212>

關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備10010545號-5
技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97