⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 check_system_price.inc

📁 不错的代码 看完后一定要留评论哦 有疑问联系我
💻 INC
字号:
<!-- #INCLUDE FILE="odbc_connection.inc" -->
<%
	'on error resume next
	sSQL="SELECT "
	sSQL=sSQL & "tbl_Inventory_System_Components_Session.intSessionID, "
	sSQL=sSQL & "tbl_Inventory_System_Components_Session.s_System_Item_No, "
	sSQL=sSQL & "Sum(tbl_Inventory.Price) AS SumOfPrice "
	sSQL=sSQL & "FROM tbl_Inventory_System_Components_Session "
	sSQL=sSQL & "INNER JOIN tbl_Inventory ON "
	sSQL=sSQL & "tbl_Inventory_System_Components_Session.s_Component_Item_No = tbl_Inventory.s_Item_No "
	sSQL=sSQL & "GROUP BY tbl_Inventory_System_Components_Session.intSessionID, "
	sSQL=sSQL & "tbl_Inventory_System_Components_Session.s_System_Item_No "
	sSQL=sSQL & "HAVING tbl_Inventory_System_Components_Session.intSessionID=" & session.SessionID & " AND tbl_Inventory_System_Components_Session.s_System_Item_No='" & Item_No & "'"
	Set Rprice = Server.CreateObject("ADODB.Recordset")
	Rprice.Open sSQL, conn, 3, 3 'read
	if Rprice.EOF then
	'if err.number>0 then
		Price=0
	else
		Price=Rprice("SumOfPrice")
	end if
	Rprice.close
	set Rprice=nothing
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -