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.
「一意の」列を持つMySQLテーブルがあります。ときどきデータを挿入する必要があるため、mysqlがテーブルにまだ存在しない一意の文字列を生成するために渡すことができるキーワードがあるのではないかと考えています? スキーマは既に入力されているため、実際には変更しません。
uuid() を試すことができます。これは、一意のユニバーサル識別子を返す必要があります。
insert into table(uniquecolumn) select uuid()