📄 check_system_price.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 + -