PHP MySQL AVG()でカラムの平均値を取得するサンプル
環境
PHP 8.1.2
Ubuntu 22.04.1 LTS
構文
$sql = “SELECT AVG(`カラム名`) AS avg FROM `テーブル名e`”; ...
PHP MySQL 複数条件に一致する重複データの有無をチェックするサンプル
環境
PHP 8.1.2
Ubuntu 22.04.1 LTS
構文
$sql = “select * from テーブル名 WHERE カラム名1 = ‘$変数1̵ ...
PHP MySQLでデータの重複をチェックするサンプル
環境
PHP 8.1.2
Ubuntu 22.04.1 LTS
構文
$sql = “select * from テーブル名 WHERE カラム名 = ‘$変数名'̶ ...
Windows11 グループポリシー Windows Update 自動更新を無効する方法
環境
Winodws 11 Pro 22H2 4bit
操作方法
1.「Windowsキー」+「R」を押下します。
2.ファイル名を指定して実行画面が表示されます。
「gpedit.ms ...
Windows11 プライバシーとセキュリティを設定する方法
環境
Winodws 11 Pro 22H2 4bit
操作方法
1.「スタート」ボタン->「設定」の順にクリックします。
2.左メニューから「プライバシーとセキュリティ」をクリックします ...
Windows11バッテリー節約機能を使用しない方法
環境
Winodws 11 Pro 22H2 4bit
操作方法
1.「スタート」ボタン→「設定」の順にクリックします。
2.左側の「システム」をクリックします。
3.右側に「電源と ...
Flutter Containerの上に枠線を表示するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
Container(
decoration: BoxDecoration(
border: Borde ...
php htmlタグが含まれているかどうか判別するサンプル
環境
PHP 8.1.2
Ubuntu 22.04.1 LTS
構文
preg_match( string $pattern, string $subject, array &$matches ...Flutter Columnの横幅を設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
SizedBox(
width:/*横幅*/,
child: Column(
ColumnをS ...
Flutter Columnの上部にパディングを設定するサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
Padding(
padding: EdgeInsets.only(
top:/*上のパディング*/, ...
Flutter Column自体を左に寄せるサンプル
環境
Windows11 pro 64bit
Flutter 3.3.7
構文
Align(
alignment: Alignment.centerLeft,
child: Colu ...
RHEL9 grep コマンドでファイルのコメント行および空白行を削除する方法
環境
Red Hat Enterprise Linux release 9.2 (Plow)
書式
grep -v ‘^\s*#’ ファイル名 | grep -v ‘^\ ...
RHEL9 シリアルコンソール接続を有効にするGRUB 設定方法
環境
Red Hat Enterprise Linux release 9.2 (Plow)
前提条件
root 権限がある。
概要
シリアルコンソールは、ネットワークがダウンしている場 ...
RHEL8.6 grubを利用してIPv6を無効にする方法
環境
RHEL 8.6
操作方法
1.sedコマンドでipv6無効設定を置き換えます
# cp -p/etc/default/grub/tmp/grub.tmp
# cat/tmp/grub ...
RHEL9 PCP(Performance Co-Pilot)メモリー使用率が高い問題をトラブルシューティングする方法
環境
pcp version 6.0.1
Red Hat Enterprise Linux release 9.2 (Plow)
概要
pmproxy サービスデーモンは、Redis ストリームを使 ...
RHEL9 PCP(Performance Co-Pilot)最小限の設定のデプロイメント方法
環境
pcp version 6.0.1
Red Hat Enterprise Linux release 9.2 (Plow)
概要
最小 PCP 設定は、Red Hat Enterprise L ...
RHEL9 PCP(Performance Co-Pilot)メトリック収集のためのクライアントシステムの設定方法
環境
pcp version 6.0.1
Red Hat Enterprise Linux release 9.2 (Plow)
概要
中央サーバーが、PCP を実行しているクライアントからメトリッ ...
RHEL9 PMLOGGER の設定ファイルの手動編集方法
環境
pcp version 6.0.1
Red Hat Enterprise Linux release 9.2 (Plow)
概要
指定したメトリックと間隔でカスタマイズしたロギング設定を作成す ...