将数据从一个表插入同一数据库的另一表后插入数据

编程入门 行业动态 更新时间:2024-10-24 12:21:56
本文介绍了将数据从一个表插入同一数据库的另一表后插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

plz我需要将数据从减法表插入到支付表后

plz i need to insert data after it from substraction table to payment table

推荐答案

使用SQL触发器. 请先自己尝试一下,然后再问问题,以防万一您遇到任何错误. 在网上了解有关SQl触发器的更多信息. Use SQL Trigger. Please try it yourself first then asked question in case if you get any error. Learn more about SQl trigger on the net.

您好,我认为您想将数据从一个表插入到第二个表,以供查询以下使用: 插入到TABLE1中从TABLE2中选择* 如果列名更改,则 插入到TABLE1中(金额)从TABLE2中选择金额 Hi, I think that you want to insert data from one table to 2nd table for this use below query: Insert into TABLE1 Select * from TABLE2 If column name are change then Insert into TABLE1(Amount) Select Amount from TABLE2

更多推荐

将数据从一个表插入同一数据库的另一表后插入数据

本文发布于:2023-10-27 00:12:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1531753.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据   数据库

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!