IT科技类资讯

遍历BOM表的SQL函数

时间:2010-12-5 17:23:32  作者:数据库   来源:系统运维  查看:  评论:0
内容摘要:复制createtablematgroup(parentgroupvarchar(50),childgroupvarchar(50),mountfloat) insertint

遍历BOM表的SQL函数
复制create table matgroup(parentgroup varchar(50),遍历M表childgroup varchar(50), mount float)   insert into matgroup    select a,  a.1,20   union select a,  a.2, 15   union select a,  a.3, 10   union select a.1, a.1.1, 20   union select a.1,a.1.2,  15   union select a.1, a.1.3,30   union select a.2, a.2.1,10   union select a.2, a.2.2, 20   union select a.1.1, a.1.1.1, 45   union select a.1.1, a.1.1.2, 15   union select a.2.1 ,a.2.1.1, 20   union select a.2.2, a.2.2.1, 13   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.
copyright © 2025 powered by 编程之道  滇ICP备2023006006号-34sitemap