根据成员的建议和上一篇文章,我正在对 interspire 购物车数据库中的多个表运行查询,如下所示:
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 CUST1@EXAMPLE.COM 0 1337502962 [BLOB - 498B]
5522 Cust2 CUST2@EXAMPLE.COM 0 1337670453 [BLOB - 284B]
4321 Cust3 CUST3@EXAMPLE.COM 0 1337507476 [BLOB - 521B]
1235 Cust4 CUST4@EXAMPLE.COM 0 1337577095 [BLOB - 1.0 KiB]
9560 Cust5 CUST5@EXAMPLE.COM 0 1337518452 [BLOB - 1.0 KiB]
当我尝试在 php 页面中回显结果以对其进行测试时,没有返回任何内容。我只是想知道 Blob 的含义以及如何使用它。很明显它里面有一些数据,我只是不知道如何访问或使用它。