You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
736 B
SQL

SELECT
ROW_NUMBER() OVER (ORDER BY pag_sn) AS '#'
,pag_sn
-- ,pag_cii_sn
,pag_code
-- ,bi.PAG_Type
,dbo.GetSysCodeName(bi.PAG_Type, 2) AS PAG_Type_name
-- ,bi.pag_url
-- ,pag_title
,bi2.PAG2_Name + '<br/><br/>'+ bi.pag_url as name_url
,bi2.PAG2_Attraction
,pag_memo
,PAG2_Summary
,bi.PAG_NeedTime
,bi2.PAG2_Title
,bi2.PAG2_PriceInclude
,bi2.PAG2_PriceExclude
-- ,*
--;select pag_cii_sn,dbo.GetCityName(pag_cii_sn, 2) as cityname
FROM BIZ_PackageInfo AS bi
INNER JOIN BIZ_PackageInfo2 AS bi2 ON bi.PAG_SN = bi2.PAG2_PAG_SN
WHERE bi2.PAG2_LGC IN (1, 2)
-- AND pag_sn = 4307
AND bi.PAG_DEI_SN = 30
AND pag_cii_sn in (7, 0)
-- group by pag_cii_sn