SQL语句如何查询某一字符串字段长度等于某个值的所有记录
来源:百度知道 编辑:UC知道 时间:2024/05/28 10:44:44
RT
求SQL语句
求SQL语句
SQL语句查询:SQL=SELECT * From 表名称 Where len(字符列名称)=长度值。
结构化查询语言(Structured Query Language)简称SQL,结构化查询语言是一种数据库查询和程序设计语言,用于存取数据以及查询、更新和管理关系数据库系统。
扩展资料
常见语句:
更新:update table1 set field1=value1 where 范围
查找:select * from table1 where field1 like ’%value1%’ (所有包含‘value1’这个模式的字符串)
排序:select * from table1 order by field1,field2 [desc]
求和:select sum(field1) as sumvalue from table1
平均:select avg(fi