Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mysql between and 、 in

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

# case, query employee information with employee numbers between 100 and 120

SELECT * FROM employees WHERE employee_id BETWEEN 100 AND 200; # the order cannot be reversed

In

Case: query employee type number is an employee name and job number in IT_PROG, AD_VP, AD_PRES

SELECT last_name,job_idFROM employeesWHERE job_id IN ('IT_PROT','AD_VP','AD_PRES'); # in followed by parentheses and single quotation marks string form # in does not support wildcards

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report