Sort (cost=1.05..1.06 rows=1 width=433) |
Sort Key: serial_no DESC |
-> Seq Scan on tbl_erp_purchase_gifts (cost=0.00..1.04 rows=1 width=433) |
Filter: ((created_at >= '2025-09-15 00:00:00+08'::timestamp with time zone) AND (created_at <= '2025-09-15 23:59:59+08'::timestamp with time zone) AND ((serial_no)::text ~~* '%HZD-20250915-%'::text) AND (length((serial_no)::text) = 18)) |