不好意思,我是一名初级程序员。 我在使用此sql时遇到了一些麻烦:
代码:
SELECT
MM.NIM,
MM.Nama,
MM.Kelas,
TJ.Jadwal AS AsliJadwal,
((CONVERT (NVARCHAR(4000), DATENAME(dw,TJ.Jadwal)))
+ ' - ' + (RIGHT ((CONVERT (NVARCHAR(4000), TJ.Jadwal, 120)), 8)))
AS JadwalSudahDilakukanManipulasi
FROM dbo.Master_Mahasiswa AS MM
INNER JOIN dbo.Transaction_Jadwal AS TJ ON TJ.IDMasterMahasiswa=MM.IDMasterMahasiswa;
编译后出现如下错误:
"You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(4000), DATENAME(dw,TJ.Jadwal)))
+ ' - ' + (RIGHT ((CONVERT (NVARCHAR(4000), TJ.' at line 6 (Line 69)
此代码有误吗? 谢谢。