bash
select dbname from rds_all_slow_sql_record_local where dbname="leopard_know" limit 10;
ERROR 47 (00000): Code: 47. DB::Exception: Missing columns: 'leopard_know' while processing query: 'SELECT dbname FROM rds_all_slow_sql_record_local WHERE dbname = leopard_know LIMIT 10', required columns: 'dbname' 'leopard_know', maybe you meant: ['dbname']. (UNKNOWN_IDENTIFIER) (version 22.8.5.29)
改为单引号解决问题
bash
select dbname from rds_all_slow_sql_record_local where dbname='leopard_know' limit 10;