MySQL TENSE
//modify table to add primary key
//truncate table
truncate table business.pcc3register
//change field type and name
//grant
grant select,insert,update on mms.* to daful1@"%" identified by "tom8*8mad";
show grants for root@'localhost';
grant all on *.* to 'abc'@192.168.1.7 identified by 'abcdef';
REVOKE privileges (columns) ON what FROM user
revoke select on mysql.* from webUser;
you can't create two timestamp datetype column in a table in mysql !!
//modify table to add primary key
alter table pcc3register add primary key( id);
alter table pcc3register change id id int auto_increment;
//change field type and add primary key auto_increment;
alter table test change a a int primary key auto_increment;
//truncate table
truncate table business.pcc3register
//change field type and name
alter table pcc3register change motxt motxtcontent varchar(500) ;
//add column to table
alter table pcc3register add motxturl varchar(100) ;
//set default
//add columns
alter table pcc3register add (mopic varchar(100),motxt varchar(500) );
//grant
grant select,insert,update on mms.* to daful1@"%" identified by "tom8*8mad";
show grants for root@'localhost';
grant all on *.* to 'abc'@192.168.1.7 identified by 'abcdef';
REVOKE privileges (columns) ON what FROM user
revoke select on mysql.* from webUser;
you can't create two timestamp datetype column in a table in mysql !!