Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アクセス2007を使用していますが、テーブルに40近くの列があり、1つの列を除くすべてのデータをnullにリセットしたいと思います。私はこのような適切なクエリを探しています
Delete table.* from table except one column
誰もがこれを行う方法を知っていますか?
UPDATEを使用できます。
UPDATE table SET col1 = null, col2 = null, col4 = null, .... WHERE 1=1
これにより、col3のすべてのデータがそのまま残ります。