| 单个表的 SELECT 语句 / 创建比较条件 | |
图: 查询
SELECT catalog_num, stock_num, manu_code, cat_advert
FROM catalog
WHERE catalog_num BETWEEN 10005 AND 10008;
SELECT catalog_num, stock_num, manu_code, cat_advert
FROM catalog
WHERE catalog_num >= 10005 AND catalog_num <= 10008;
图: 查询结果
catalog_num 10005
stock_num 3
manu_code HSK
cat_advert High-Technology Design Expands the Sweet Spot
catalog_num 10006
stock_num 3
manu_code SHM
cat_advert Durable Aluminum for High School and Collegiate Athletes
catalog_num 10007
stock_num 4
manu_code HSK
cat_advert Quality Pigskin with Joe Namath Signature
catalog_num 10008
stock_num 4
manu_code HRO
cat_advert Highest Quality Football for High School
and Collegiate Competitions
尽管 catalog 表标记具有 BYTE 数据类型的列,但该列不包括在此 SELECT 语句中,原因是输出将按列名只显示词 <BYTE value>。可以编写 SQL API 应用程序来显示 TEXT 和 BYTE 值。