username为字符型,在引用字符型产量时要加单引号.第一条语句改为:update users set age=10 where username='John';即可
where条件中如果是字符的话必须加英文状态双引号‘’,username为john属于字符,这个是几乎所有关系型数据库通用的规则!