当前位置: 首页 > news >正文

OpenGauss数据库-5.数据更新

第1关:插入数据

gsql -d postgres -U gaussdb -W "passwd123@123"
create table student (id integer primary key,name char(20),age integer );
insert into student values(1,"lily",20),(2,'lily',21),(3,'marry',19);

第2关:删除数据 

gsql -d postgres -U gaussdb -W "passwd123@123"
delete from student where name='lily';

第3关:修改数据 

gsql -d postgres -U gaussdb -W "passwd123@123"
update student set age=18 where id=3;

 

http://www.lryc.cn/news/368513.html

相关文章:

  • 【2024最新华为OD-C/D卷试题汇总】[支持在线评测] 机场航班调度程序(100分) - 三语言AC题解(Python/Java/Cpp)
  • Spark作业运行异常慢的问题定位和分析思路
  • 音视频转为文字SuperVoiceToText
  • Python基础教程(九):Lambda 函数
  • docker从入门到精通
  • 介绍工厂模式
  • 大数据领域的workload是什么意思?
  • 引入别人的安卓项目报错
  • Python Excel 指定内容修改
  • 【力扣高频题】003.无重复字符的最长子串
  • redis03 补充 事件
  • 绿联Nas docker 中 redis 老访问失败的排查
  • Linux入门学习(2)
  • Spring boot开启跨域配置
  • java面试题:hashCode的作用
  • 从零开始精通Onvif之获取设备信息
  • FiRa标准UWB MAC实现(三)——距离如何获得?
  • 基于百度翻译API的火车头PHP翻译插件,可以翻译HTML片段
  • mysql高级用法常用函数
  • 【打印100个常用Linux命令】
  • 友情提示:lazarus的tsortgrid.autofillcolumns存在BUG
  • github的个人readme文件
  • java面试题: HashMap、HashSet 和 HashTable 的区别
  • CPP初级:模板的运用!
  • 排序---基数排序
  • “新高考”下分班怎么分?
  • 二叉树的层序遍历-力扣
  • N32G45XVL-STB之移植LVGL(lvgl-8.2.0)
  • 【设计模式】创建型设计模式之 原型模式
  • 【类型商店】字符字符串(下)