Allen 2021-08-12 08:56:46 6442 5 0 0 0
博客,技术,关键字:道客资料库LinuxWindowsOraclePHPPythonDelphi系统网络博客论坛幽默历史新闻社会描述:道客论坛,资料库,分享技术Linux、Windows、Oracle、PHP、P…

关键字:道客 资料库 Linux Windows Oracle PHP Python Delphi 系统 网络 博客 论坛 幽默  历史 新闻 社会

描述:道客论坛,资料库,分享技术Linux、Windows、Oracle、PHP、Python、Delphi、系统、网络,关注新闻社会,历史真相!

---------------

Sql语句

--更新主题编码

--更新log表中主题编码
update ty_log t set main_code=(select main_code from ty_main m where m.main_id=t.main_id)
where t.main_code is null

--更新操作表中主题编码
update ty_act t set main_code=(select main_code from ty_main m where m.main_id=t.main_id)
where t.main_code is null

--修改用户名

--修改用户名
-- main
update ty_main set user_name='新名' where user_name='原名';
update ty_main set reply_username='新名' where reply_username='原名';
update ty_main set update_username='新名' where update_username='原名';
-- post
update ty_post set user_name='新名' where user_name='原名';
update ty_post set update_username='新名' where update_username='原名';
-- forum
update ty_forum set entry_username='新名' where entry_username='原名';
update ty_forum set update_username='新名' where update_username='原名'
-- user
update ty_user set user_name='新名' where user_name='原名';
update ty_user set update_username='新名' where update_username='原名'
-- log
update ty_log set user_name='新名' where user_name='原名';
update ty_log set act_username='新名' where act_username='原名';
-- act
update ty_act set user_name='新名' where user_name='原名';
-- tag
update ty_tag set user_name='新名' where user_name='原名';
update ty_tag set entry_username='新名' where entry_username='原名';

end


Tag: 博客 技术
评论
Allen#1Allen 2020-05-19 14:02:28(N) 链接地址

test add delete


Allen#2Allen 2020-05-19 14:04:39(N) 链接地址

            <!-- 站长统计taoook.com -->

            <script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1278915589&web_id=1278915589"></script></p>

Allen#3Allen 2020-05-21 10:08:20(N) 链接地址

已经添加到V2EX中

            <!-- 站长统计tdlib.com-->

<script type="text/javascript" src="https://v1.cnzz.com/z_stat.php?id=1278922284&web_id=1278922284"></script>

阿开#4阿开 2021-05-12 14:25:06(N) 链接地址
女生外向啊`~~
阿开#5阿开 2021-05-12 14:25:23(N) 链接地址
女生外向啊~~
顶部     1/1 
欢迎评论
未登录,
请先 [ 注册 ] or [ 登录 ]
(一分钟即可完成注册!)
返回首页     ·   返回[站点资料]   ·   返回顶部