我有一个在 mysql 数据库中创建 VIEW 的代码,该代码在我的本地服务器上运行良好。它可以正常创建和裁剪视图。但在我的在线服务器上它给出了错误
"CREATE VIEW command denied to user"
Run Code Online (Sandbox Code Playgroud)
对于在线数据库,我在数据库表单 PHPmyAdmin [Myadmin 位于本地主机在线] 中手动创建 VIEW,因此我有权在在线数据库上创建 VIEW。
但是用phpmysql_query就报错了command denied。是否有任何服务可以使用 php.ini 创建视图?
我正在使用 IWshRuntimeLibrary 用 C# 创建快捷方式。快捷方式文件名是印地语“??????”。
我正在使用以下代码我的片段来创建快捷方式,其中 shortcutName = "??????.lnk"
WshShellClass wshShell = new WshShellClass();
IWshRuntimeLibrary.IWshShortcut shortcut;
shortcut = (IWshRuntimeLibrary.IWshShortcut)wshShell.CreateShortcut(destPath + "\\" + shortcutName);
shortcut.TargetPath = sourcePath;
shortcut.Save();
Run Code Online (Sandbox Code Playgroud)
在shortcut.Save()我得到以下异常。
The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)
Run Code Online (Sandbox Code Playgroud) 我有查询提供错误的结果,我在这个查询中做了任何错误
SELECT b.nBoutiqueID ,
b.sBoutiqueName ,
b.Status ,
SUM(bs.nViewCount) nViewCount ,
SUM(ps.nViewCount) nProductViewCount,
SUM(ps.nLinkClickCount) nLinkClickCount ,
SUM(ps.nWishListCount) nWishListCount ,
SUM(ps.nReferredCount) nReferredCount
FROM boutique b
LEFT JOIN boutique_stats bs
ON b.nBoutiqueID=bs.nBoutiqueID
LEFT JOIN product_stats ps
ON ps.nBoutiqueID=b.nBoutiqueID
WHERE b.bDeleted =0
GROUP BY b.nBoutiqueID
ORDER BY ps.nProductID DESC
Run Code Online (Sandbox Code Playgroud)
查询没有任何错误,但产生错误的结果.我正在使用Mysql.
对于nBoutiqueID = 1特定实例nViewCount的最大总和应该是455,但它给了95124.这是巨大的差异.谁知道为什么?