You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
212 B
MySQL
14 lines
212 B
MySQL
4 months ago
|
UPDATE `char` `c`
|
||
|
INNER JOIN `login` `l`
|
||
|
ON `l`.`account_id` = `c`.`account_id`
|
||
|
SET `c`.`sex` = `l`.`sex`
|
||
|
WHERE
|
||
|
`c`.`sex` = 'U'
|
||
|
AND
|
||
|
`l`.`sex` <> 'S'
|
||
|
;
|
||
|
|
||
|
ALTER TABLE `char`
|
||
|
MODIFY `sex` ENUM('M','F') NOT NULL
|
||
|
;
|