zoukankan      html  css  js  c++  java
  • 游标示例

    < DOCTYPE html PUBLIC -WCDTD XHTML StrictEN httpwwwworgTRxhtmlDTDxhtml-strictdtd>
    DECLARE titles_cursor CURSOR FOR select distinct E_ID from C_Employee order by E_ID ASC ;
    declare @ids as varchar(1000)
    OPEN titles_cursor
    declare @iname as int
    FETCH NEXT FROM titles_cursor INTO @iname
    WHILE @@FETCH_STATUS = 0
    BEGIN
       select top 10 * from c_monthattendance where
    FETCH NEXT FROM titles_cursor INTO @iname
    END
    CLOSE titles_cursor
    deallocate titles_cursor
  • 相关阅读:
    ACM TJU 1556
    HDU 1890 Robotie Sort
    Android学习笔记
    HDU 2795
    HDU 1542
    HDU 1698
    POJ 2185
    学习笔记
    HDU 3336
    HDU 3746
  • 原文地址:https://www.cnblogs.com/netcorner/p/2912056.html
Copyright © 2011-2022 走看看