我想通過Emacs使用sql-mode連接到PostgreSQL數據庫。 我啓動Emacs,命令M-x sql-postgres,它會提示輸入用戶, 數據庫和服務器,但不提供密碼。空緩衝區打開 和任何我寫的,我得到: the Password for user james:
psql: FATAL: password authentication failed for user "james"
我試圖測試在測試環境是如下 查詢的查詢: - SELECT a.aggreatorid AS aggreatorid, '' AS txndesc, DATE_FORMAT(DATE(b.txndate),'%d/%m/%Y') AS txndate,
SUM(txncredit) AS txncredit, SUM(txndebit) AS txndebit
FROM wal
它使用MySQL Extensions to GROUP BY,如果sql_mode設置爲ONLY_FULL_GROUP_BY,則無法執行。 -- SET sql_mode = ""; -- reset sql_mode and execute statement
SELECT
`courses`.`id` AS `id`,
`courses`.`title` AS `tit