miniSql

创建
zgc123@gmail.com authored at 11/19/2023 1:40:15 AM
6136600
Tree
0 Parent(s)
Summary: 1 changed files with 26 additions and 0 deletions.
Added +26 -0
Added +26 -0
diff --git a/minisqlquery-master/src/MiniSqlQuery/Templates/Sample - Advanced Looping.txt.mt b/minisqlquery-master/src/MiniSqlQuery/Templates/Sample - Advanced Looping.txt.mt
new file mode 100644
index 0000000..18ed558
--- /dev/null
+++ b/minisqlquery-master/src/MiniSqlQuery/Templates/Sample - Advanced Looping.txt.mt
@@ -0,0 +1,26 @@
+## The following script demonstraits the advanced looping abilities using foreach.
+
+#foreach ($row in ${Data.Get(null, "Categories").Rows})
+#beforeall
+
+	I am before everything
+	
+#before
+		>>> (before each item)
+#each
+			"${Host.Data.ColumnValue($row, "Category Name")}"
+#after
+		<<< (after each item)
+#between
+	(i am between each line)
+#odd
+	[I am an odd row...]
+#even
+	[I am an even row]
+#nodata
+	(I appear if theres no data)
+#afterall
+
+	I am last.
+	
+#end