关于sql更新最后一个逗号的去除或则最后的and的去除

去除最后的逗号
substr_replace($update_sql ,"",-1);
去除最后的and
substr_replace($update_sql ,"",-3);
posted @ 2018-01-28 12:10  zonehoo  阅读(2413)  评论(0编辑  收藏  举报