查询view 的列和列数据类型 SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'view name' 树 1. 所有的子树 WITH SubTree AS ( SELECT tt.ID as SubTreeRoot, tt.ID FROM TreeTable tt UNION ALL SELECT st.SubTreeRoot, tt.ID FROM TreeTable tt IN…