0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AccessでSQLによるカラム追加

Last updated at Posted at 2023-12-19

やり方

SQL実行前が下記。
image.png

テーブルにカラム追加SQL
ALTER TABLE t_1 
ADD COLUMN 
text_column_1 TEXT(255), 
memo_column_1 MEMO,
yesno_column_1 YESNO,
date_column_1 DATE,
int_column_1 INT,
auto_column_1 COUNTER PRIMARY KEY

SQL実行後。
image.png

AccessはSQLでカラム追加時にカラム位置の指定はできない

調べたのですが AFTER みたいな句を使って、『〇〇という名前のカラムの後に追加』はできないようです。

Accessは既存カラムの位置変更をSQL経由ではできない

追加後に並べ替えるということもできないようでした…。

参考サイトさん

バージョン

Microsoft Windows [Version 10.0.19045.3803]
Microsoft Access for Microsoft 365 MSO (バージョン 2311 ビルド 16.0.17029.20108) 32 ビット

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?