如何使用If条件在列中插入值 [英] How Can I Insert Value In Column Using If Condition

查看:63
本文介绍了如何使用If条件在列中插入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查条件curr行与prev行

如果值更大我想在表中插入值buy否则sell

i want to check condition curr row with prev row
if value is greater i want to insert value in table "buy" else "sell"

推荐答案

尝试选择curr和prev值并将它们放在int var中并保留prev的id然后

尝试比较cur和prev与if循环如果返回true,则执行insert在你的表中

如果它不起作用发布你的代码所以我可以理解更多
Try to select the curr and prev value and put them in int var and keep the id of prev then
try to compare between cur and prev with if loop if return true do insert in your table
if it does not work post your code so I can understand more


这篇关于如何使用If条件在列中插入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆