假设我将此作为我的sql脚本。 我实际上如何创建一个新表,以便可以导出为csv?
SELECT *
FROM `db`.tableParent1
INNER JOIN tableParent2
ON tableParent1.req_id=tableParent1.req_id
INNER JOIN tableParent3
ON tableParent1.req_id=tableParent3.req_id
UNION ALL
FROM `db`.tableChild1
INNER JOIN tableChild2
ON tableChild1.req_id=tableChild2.req_id
INNER JOIN tableChild3
ON tableChild1.req_id=tableChild3.req_id
答案 0 :(得分:0)
要通过查询创建新表,您需要输入“将表名称创建为QUERY”
Dim ArrayCount As New List(Of Integer)
Dim x As Integer, y As Integer
For x = 0 To TwoDeeArray.GetUpperBound(0)
For y = 0 To TwoDeeArray.Rank - 1
If TwoDeeArray(x, y) >= ArrayCount.Count Then
Do While TwoDeeArray(x, y) >= ArrayCount.Count
ArrayCount.Add(0)
Loop
End If
ArrayCount(TwoDeeArray(x, y)) += 1
Next
Next
要将表格导出为csv,请遵循下一个link。
。