Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我会尝试在我的存储过程中选择一段时间
while ( select * from t where t.c = 1 into test_t ) { var_t_e = test_t.c; }
我希望我能在这里得到帮助。:)
查看有关在存储过程中使用游标的文档。
根据评论编辑:
根据您的评论,我不太确定您的要求。如果你能澄清我可以试着给你一个更具体的例子。这是一个链接,它通过游标生成存储过程的步骤,其中包含有关各个步骤的一些很好的信息,以及何时不应该使用游标。这可能对您更有帮助。