我試圖想出一個使用Microsoft SQL Server的while循環的簡單示例。 在這裏我循環了所有以temp開頭的表格。 Declare @Object_ID int,@Name varchar(50)
set @Object_ID = 0
while exists (
select * from
sys.tables
where type = 'u'
我有一個jQuery函數,它在對象上執行.clone(),然後在克隆對象上執行.insertAfter()和.slideDown()。這整個功能被包裹在while循環中。我會保持這個短而簡潔越好,顯示了通用例如: while (statement) {
// code for clone and insert ...
$("#newly_created_object").sli
考慮下面的代碼示例: public class WeirdStuff {
public static int doSomething() {
while(true);
}
public static void main(String[] args) {
doSomething();
}
}
這是一個有效的Java程序,儘管該