求MYSQL删除命令?

求MYSQL删除命令?,第1张

delete from user_info_manage where (login_number Between 3 and 5 ) and (number_count Between 6 and 9)

1.点击左下角开始菜单按钮

2.在开始菜单下方搜索框中搜索cmd

3.敲下回车键,打开cmd窗口

4.输入mysql -u root -p命令,然后回车

5.提示输入密码,输入正确的密码,进入mysql命令行

6.切换到指定的数据库,然后使用show tables命令展示所有表

7.删除表的命令格式为DROP TABLE <table_name>

1 想从代码层修改的话:可以让最后这个函数的输出内容为空(这也是最简单,粗暴的方式),或者在前面修改,不去调用这个函数。

2 使用.mylogin.cnf

[root@10-19-155-238 ~]# mysql_config_editor set --user=song --host=127.0.0.1 --port=3306 --password

Enter password:

[root@10-19-155-238 ~]# ls -al

总用量 60100

dr-xr-x---. 3 root root 4096 12月 25 16:49 .

dr-xr-xr-x. 18 root root 4096 12月 25 12:14 ..

-rw-r--r-- 1 root root 61480982 12月 25 16:05 bak_mysql-boost-5.7.17.tar.gz

-rw-------. 1 root root42 12月 25 15:19 .bash_history

-rw-r--r--. 1 root root18 12月 29 2013 .bash_logout

-rw-r--r-- 1 root root 204 12月 25 14:52 .bash_profile


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/7341278.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-04
下一篇 2023-04-04

发表评论

登录后才能评论

评论列表(0条)

保存