Perl

環境
Perl  5.32.1
Windows10 home 64bit

書式
my @配列名 = (要素1,要素2,xxx);
unshift @配列名,要素;
unshift関数 ...

Perl

環境
Perl  5.32.1
Windows10 home 64bit

書式
my @配列名 = (要素1,要素2,xxx);
配列の末尾に値を追加する方法
方法1
$配列 ...

Perl

環境
Perl v5.32.1
Windows10 64bit
書式
print 文字列1.文字列2
連結する場合は文字列と文字列をドット(.)で結びます。
使用例

use str ...

Perl

書式
$ + 配列変数名 +「インデックス値」
配列のインデックスは0からです。0は1番目の要素、
1は2番目の要素。
-1は最後の要素、-2は最後の2番目要素

使用例

@sites ...

MariaDB

環境
MariaDB 10.6.4
Windows10 home 64bit

書式
JSON_ARRAY_APPEND(‘jsonオブジェクト’,’位置̵ ...

Perl

書式
1.配列の宣言
@配列名 = (要素1,要素2,xxx)
2.配列の要素へのアクセス
「$ + 配列名 + インデックス」で配列の要素を取得します。

使用例

#!/usr/bin ...

MariaDB

環境
MariaDB 10.6.4
Windows10 home 64bit

SQL構文

select * from information_schema.INNODB_BUFFER_PAGE;

...

MariaDB

環境
MariaDB 10.6.4
Windows10 home 64bit

操作方法
1.新しいユーザーを作成します。

MariaDB > create user 'testuser0 ...

MariaDB

環境
MariaDB 10.6.4
Windows10 home 64bit

書式
JSON_ARRAY_APPEND(‘json’,’位置’, ...

MariaDB

環境
MariaDB 10.6.4
Windows10 home 64bit

mariadbのポート番号を調べます

MariaDB > show variables like 'port';+- ...

Python

環境
PyCharm 2021.3.3
Python 3.9.2
SQLite3

書式
1.connect(db名)
sqlite3.connect(r’パス名\test ...

Python

書式
対象文字列
最初の1文字目の位置は0です。
最初の文字から「終了位置」までの文字を返します。
使用例

# coding: utf-8str = 'テスト太郎'#終了位置2print(str) ...

Python

環境
PyCharm 2021.3.3
Python 3.9.2
SQLite3

書式
1.connect(db名)
sqlite3.connect(r’パス名\test ...

Python

環境
PyCharm 2021.3.3
Python 3.9.2

書式
正規表現式”^ST”
先頭が「ST」の文字を指定しています。
groupメソッドは一致 ...

Python

環境
PyCharm 2021.3.3
Python 3.9.2

操作方法
1.「ファイル(F)」->「設定(T)」をクリックします。

2.左側一覧から「プロジェクト:python ...

Python

環境
PyCharm 2021.3.3
Python 3.9.2

書式
正規表現式”k{3}”
「k」が2回連続することを指定しています
groupメソッドは ...

Python

環境
PyCharm 2021.3.3
Python 3.9.2
SQLite3
書式
1.connect(db名)
sqlite3.connect(r’パス名\test1. ...

Python

書式
正規表現式 ]
「E」または「F」の文字を指定しています。groupメソッドは一致した文字列を返します。

使用例

# coding: utf-8import re#「E」または「F」の文字を指定 ...