作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
<分区>
希望得到一些帮助。 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%'
这个问题在这里已经有了答案: SQL statement is ignoring where parameter (1 个回答) 关闭 7 年前。 希望得到一些帮助。 MySQL 忽略了我只询问 i
我是一名优秀的程序员,十分优秀!