六月随笔
sql:
select LINE_CODE,LINE_CONTENT,(select top 1 GROUP_START_DATE from T_PRODUCT_LINE_GROUP_INFO where T_PRODUCT_LINE_GROUP_INFO.LINE_CODE=T_PRODUCT_LINE_INFO.LINE_CODE order by T_PRODUCT_LINE_GROUP_INFO.GROUP_START_DATE) as stardate from T_PRODUCT_LINE_INFO
作用除了查询出T_PRODUCT_LINE_INFO的所需字段,可以外加一个别的表自己需要的字段,感觉比较实用