在psql客戶端中修改函式

2022-01-11 22:11:26 字數 403 閱讀 1459

\ef 建立乙個新的函式。

\df 顯示已經建立的函式。

\df+    somefunc 顯示這個函式的詳細定義

\ef   somefunc 編輯這個函式, 編輯儲存退出之後,要執行 \g ,剛才的修改才會生效。

\g  使剛才的修改生效。

after you edit the function with\ef, you need to enter\gor;to execute the statement that updates the function.

so it would be

\ef function_name()

[edit away]

\g

在psql客戶端中修改函式

ef 建立乙個新的函式。df 顯示已經建立的函式。df somefunc 顯示這個函式的詳細定義 ef somefunc 編輯這個函式,編輯儲存退出之後,要執行 g 剛才的修改才會生效。g 使剛才的修改生效。after you edit the function with ef,you need t...

在psql客戶端中修改函式

ef 建立乙個新的函式。df 顯示已經建立的函式。df somefunc 顯示這個函式的詳細定義 ef somefunc 編輯這個函式,編輯儲存退出之後,要執行 g 剛才的修改才會生效。g 使剛才的修改生效。after you edit the function with ef,you need t...

macOS下psql客戶端中文亂碼問題

最近在macos下安裝了postgresql 12.2版,因為第一次使用,發現shell下輸入中文會亂碼,網上很多幫助文件大部分都是說設定一下 client encoding gbk就可以了,但我機器試了無數次都仍然有問題,後來發現直接在macos系統的shell下可以輸入中文,但在psql下就不行...