首先,测试人员需掌握基本的SQL语句,简单来说就是数据库的增删改查操作
1.查询 select
select * from 表名
2.更新 update
update 表名 set 字段名=值
3.插入 INSERT INTO
insert into 表名 字段名=值
4.删除 delete
delete from 表名 where 条件
如上为最简单的增删改查及相应命令,深入学习自行查阅相应资料,本处仅作为基础掌握提示
两表关联查询:
SELECT t1.customer_name, t1.customer_num, t2.company_code,t2.customer_id FROM ea_scm_test.scm_sale_customer_head t1, ea_scm_test.scm_sale_customer_contact t2 WHERE t1.id = t2.customer_id and t1.customer_name = "csAPI7"; 标签:基本,customer,scm,表名,t2,t1,命令,SQL,id From: https://www.cnblogs.com/dczs/p/18053655