MySQL Forums
Forum List  »  Triggers

Re: VARCHAR DEFAULT 'user' to record current user name
Posted by: Peter Brawley
Date: October 23, 2017 01:02PM

I've not heard of that. Up to mysql 8 ...

drop table if exists t;
create table t(u varchar(64) default current_user(), i int);
insert into t set i=1;
select * from t;
+------+------+
| u    | i    |
+------+------+
| user |    1 |
+------+------+

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: VARCHAR DEFAULT 'user' to record current user name
778
October 23, 2017 01:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.