SQL でカラムのデフォルト値を設定可能にしたい場合は、デフォルト値のレコードを用意してカラムに NULL が来たらトリガでデフォルト値レコードを見て設定するようにするのがいいのかな

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mstdn.jp/users/kaznak/statuses/114135501854786403 on your instance and quote it. (Note that quoting is not supported in Mastodon.)