mysql-error-1064 - 你会帮我吗?我不断收到错误代码 1064,我不明白为什么
问题描述
我使用 Mysql 工作台不断收到错误代码 1064
- - - - - 代码 - - - - - -
use sql_invoicing;
select
'Total Invoice',
sum(invoice_total) as 'Total Sales',
sum(payment_total) as 'Total Payment'
from
(
select
i.number as 'Invoice number',
i.client_id,
c.name,
i.invoice_total,
i.payment_total as 'Total Payments',
pm.name
from
invoices i
left join clients c on i.client_id = c.client_id
left join payments p on i.invoice_id = p.invoice_id
left join payment_methods pm on p.payment_method = pm.payment_method_id
where
pm.name is not null
order by
client_id desc
) as 'R'
我无法弄清楚语法错误是什么:(。
预先感谢您的帮助
解决方案
推荐阅读
- c++11 - 如何使用带有指向非 const 对象的 const 共享指针的重置?
- spring-integration - “文件夹处于只读模式”异常
- java - Spring boot Hibernate 一对多关系
- wpf - 如何将 WPF 框架扩展到其父宽度?
- multithreading - 阻止除一个之外的所有线程的最佳方法是什么?
- javascript - Material UI Theme - 交换原色和副色
- sql - 计算SQL中两个日期之间的月数
- scala - scala:使用while循环检查是否是素数
- javascript - 我在 PHP 回显语句中用完了引号
- javascript - 更新图表时修改chart.js中的标签