【MySQL】命令行执行sql,去除字段名

mysql的-e选项可让咱们在命令行下执行sql:html /bin/mysql -h localhost -u {user_name} -p{password} -P 3308 {db_name} -e "select id from {table_name} where uid=1;" +-------+ | id    | +-------+ | 10162 | | 10151 | | 10
相关文章
相关标签/搜索