gpt4 book ai didi

mySQL 查询不工作 : just invoicenumbers starting with xyz%

转载 作者:行者123 更新时间:2023-11-30 22:20:09 25 4
gpt4 key购买 nike

<分区>

希望得到一些帮助。 MySQL 忽略了我只询问 invoicenumber 以某些字符开头的行。没有错误信息。我只是按照我的要求收到了所有发票。

我添加了 OR 'orders_billing'.'rechnungsnummer' LIKE 'xy%' OR 'orders_billing'.'rechnungsnummer' LIKE 'ab%'

这部分不起作用。有人可以给我提示吗?

SELECT     "orders_billing"."billing_id",
"orders_total_local"."orders_id",
"orders_billing"."rechnungsnummer",
"orders_total_local"."value" as versandkosten,
"orders_billing"."rechnung_crdate",
"orders_billing"."billing_company",
"orders_billing"."billing_address_id" as customers_id,
"orders_billing"."billing_name",
"orders_billing"."billing_country",
"orders_billing"."delivery_country",
"orders_billing"."rechnung_pdf",
"orders_products_local"."final_price",
"orders_products_local"."products_tax",
"orders_local"."currency"
FROM "orders_billing"
LEFT JOIN("orders_products_local","orders_local","orders_total_local")
ON( "orders_products_local"."orders_id" = "orders_billing"."orders_id" AND
"orders_local"."orders_id" = "orders_billing"."orders_id" AND
"orders_total_local"."orders_id" = "orders_billing"."orders_id"
)
WHERE "billing_id" > '23' && "billing_id" < '27'
OR "orders_total_local"."class" = 'ot_shipping'
OR "orders_billing"."rechnungsnummer" LIKE 'ABC%'
OR "orders_billing"."rechnungsnummer" LIKE 'XYZ%'

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com