No, you can’t.
However, you could easily create a trigger to do this, such as:
CREATE TRIGGER before_insert_app_users BEFORE INSERT ON app_users FOR EACH ROW SET new.api_key = uuid();
More Related Contents:
- what will be the sql query code of this “Healthcare” database?
- Rank function in MySQL
- Find nearest latitude/longitude with an SQL query
- How to group by week in MySQL?
- convert_tz returns null
- Convert MySQL to SQlite [closed]
- MySQL query String contains
- MySQL autoincrement column jumps by 10- why?
- Best data type for storing currency values in a MySQL database
- ERROR 1067 (42000): Invalid default value for ‘created_at’
- MySQL Workbench: How to keep the connection alive
- Capitalize first letter. MySQL
- #1055 – Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this is incompatible with sql_mode=only_full_group_by
- Use a trigger to stop an insert or update
- mysql query show multiple tables from one ID column
- MySQL: ALTER IGNORE TABLE gives “Integrity constraint violation”
- MySQL remote connection fails with “unknown authentication method”
- Import MySQL database into a SQL Server
- How does MySQL’s ORDER BY RAND() work?
- How create json format with group-concat mysql?
- What is the difference between SQL and MySQL? [closed]
- how to use a like with a join in sql?
- Escaping the colon character ‘:’ in JPA queries
- How to export / dump a MySql table into a text file including the field names (aka headers or column names)
- Laravel MySql DB Connection with SSH
- What happens when I exhaust a bigint generated key? How to handle it?
- Automatic Rollback if COMMIT TRANSACTION is not reached
- Get column sum and use to calculate percent of total (mySQL)
- is there a length limit to group_concat or another reason why it would not work on a text field
- Sum until certain point – MySql