随笔分类 - 数据库
摘要:MySQL版本:5.7.34-log *通过创建函数的方法,目前可以实现整数金额的转换,网上暂未找到MySQL版本的故自己参照其他数据库版本的改编了一下,*仅供参考!!! 使用方法:select rmb(10000) CREATE DEFINER = `root`@`%` FUNCTION `rmb
阅读全文
摘要:###两表关联更新 ####通用方法 update test1 set name=(select name from test2 where test2.id=test1.id), age=(select age from test2 where test2.id=test1.id) ####MyS
阅读全文