「Oracle12c」INITCAP関数で文字列の先頭を大文字に変換する
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
書式
INITCAP(文字列)
INITC ...
「Oracle12C」CEIL関数で最も小さい正数を返す
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
書式
CEIL(n)
CEILは、n以上の ...
「Oracle12c」FLOOR関数で最も大きい整数値を求める
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
書式
FLOOR(value)
FLOOR ...
「Oracle12c」LAST_DAY関数で月の最終日付を取得する
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
書式
LAST_DAY(日付)
LAST_ ...
「NumPy」配列ndarrayの引数でdtypeを指定する
環境
Python3.9.2
PyCharm 2021.3.3
書式
np.array(, dtype=int)
np.array(, dtype=’int’) ...
「Oracle12C」UPPER関数で文字列を大文字に変換する
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
構文
UPPER(文字列)
UPPER関数 ...
「Oracle12c」LTRIM関数で文字列の先頭から空白文字を削除する
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
書式
LTRIM(word)
wordで指 ...
「NumPy」astype()によるデータ型dtypeの変換サンプル
環境
Python3.9.2
PyCharm 2021.3.3
書式
ndarray.astype(dtype, order=’K’, casting=’unsa ...
「Perl」関係演算子のサンプル
環境
Perl 5.32.1
Windows10 home 64bit
書式
2つの値が等しいかどうかを判別する場合、数値を比較するには「==」を使い、
文字列を比較するには「eq」を使いま ...
「NumPy」配列ndarrayにデータ型dtypeを指定するサンプル
環境
Python3.9.2
PyCharm 2021.3.3
書式
np.array(, dtype=’int64′)
np.array(, dtype=np.in ...
「Numpy」画像ファイルをNumPy配列ndarrayで読み込むサンプル
環境
Python3.9.2
PyCharm 2021.3.3
書式
np.array(Image.open(‘画像パス’))
np.array()にPIL.Image. ...
Oracle12cに日付を文字列型に変換するサンプル
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
書式
TO_CHAR(SYSDATE, フォーマッ ...
「PostgreSQL」Viewビューの定義を調べる方法
環境
Windows 10 64bit
PostgreSQL 9.6.5
操作方法
1.全ビューを調べる
Oracle12cにCURRENT_DATEで現在の日付を取得する
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
書式
CURRENT_DATE
現在の日付 ...
「Oracle12c」SYSDATEで在の日付を取得する
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
書式
SYSDATE
現在の日付を取得する ...
「PostgreSQL」ロール(ユーザー)の作成、削除方法
環境
Windows 10 64bit
PostgreSQL 9.6.5
書式1 ユーザー(ロール)を作成する
CREATE ROLE ロール名 WITH LOGIN PASSWORD ̵ ...
「PostgreSQL」ロールにテーブル、ビューの権限を付与する
環境
Windows 10 64bit
PostgreSQL 9.6.5
操作方法
1.SELECT権限を付与する
書式
GRANT SELECT ON テーブル名 TO ロール名; ...
Oracle 12CでINSTR関数を使用して文字列の位置を求める
環境
Oracle Database 12c Standard Edition Release 12.2.0.1.0 – 64bit Production
構文
INSTR(word, target ] ...