当前位置:网站首页>Oracle SQL command line (III. addition, deletion, modification and query)

Oracle SQL command line (III. addition, deletion, modification and query)

2022-06-10 08:27:00 Li Xiang superb

SQL> select * from stu;

SON      SNAME                      SAGE
-------- -------------------- ----------
1001      Zhang San                          18
1003      Li Si                          22
1002      Wang Wu                          19
2222      ha-ha                          22

SQL> insert into stu
  2  values('1234',' Lennon ',19);

 Created  1  That's ok .

SQL> update stu
  2  set sage=49
  3  where sname=' Lennon ';

 Updated  1  That's ok .

SQL> delete
  2  from stu
  3  where son=2222;

 deleted  1  That's ok .

SQL> select * from stu;

SON      SNAME                      SAGE
-------- -------------------- ----------
1001      Zhang San                          18
1003      Li Si                          22
1002      Wang Wu                          19
1234      Lennon                          49

      
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
原网站

版权声明
本文为[Li Xiang superb]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203021054589849.html