依据一位成员及前一职位Im的建议, 在一个间歇购物车数据库的多张表格上进行询问,
SELECT c.customerid, c.custconfirstname, c.custconemail, o.ordstatus, o.orddate, GROUP_CONCAT( Order Id: , orderid, | Product name: , ordprodname, | Quantity: , ordprodqty, <br> ) AS ordered_items
FROM isc_customers c
LEFT OUTER JOIN isc_orders o ON o.ordcustid = c.customerid
LEFT OUTER JOIN isc_order_products op ON op.orderorderid = o.orderid
LEFT OUTER JOIN isc_product_images pi ON pi.imageprodid = op.orderprodid
GROUP BY c.customerid
HAVING COUNT( DISTINCT o.ordcustid ) >0
AND o.ordstatus = 0
AND o.orddate < UNIX_TIMESTAMP( ) - 18000
AND o.orddate > UNIX_TIMESTAMP( ) - 259200
我进入phpmyadmin的结果是这样的:
customerid custconfirstname custconemail ordstatus orddate ordered_items
6532 Cust1 [email protected] 0 1337502962 [BLOB - 498B]
5522 Cust2 [email protected] 0 1337670453 [BLOB - 284B]
4321 Cust3 [email protected] 0 1337507476 [BLOB - 521B]
1235 Cust4 [email protected] 0 1337577095 [BLOB - 1.0 KiB]
9560 Cust5 [email protected] 0 1337518452 [BLOB - 1.0 KiB]
当我试图在php页面上回录结果来测试它时,没有回音。我只是想知道Blob是什么意思和如何使用它。很明显,它有一些数据,我只是不知道如何访问或使用它。