Oracle SQL syntax

这一生的挚爱 提交于 2019-12-20 06:55:53

问题


This is my table structure . I have many problems in trying to make different things work .

  1. How do I enter the values into task where Monday = 62 ?

    INSERT INTO it_time_track (task,percentage)
    VALUES ('Support',null) where Monday=62; commit ;
    

This gives me an error

-- I fixed it by making it an interactive Grid on Oracle Apex and doing a select to display this table and then I went on to edit it manually .


回答1:


UPDATE it_time_track 
SET Monday = (SELECT SUM(Monday)  
                  FROM it_time_track 
                  ) 
WHERE Id = 7


来源:https://stackoverflow.com/questions/51733660/oracle-sql-syntax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!