--Retrieving Specific columns for all users> Retrieving Data from table
select name,employed from users
--Retrieving all columns for all users
select * from users
--Retrieving all columns for first 3 users
select * from users limit 3
--Retrieving all columns for all users where employed = true
select * from users where employed = true
-- Make all rows as employed = true> Update entries
update users set employed = true
-- change employed = false for entries with address = 'nebraska'
update users set employed = false where address = 'nebraska'
-- Deleting all entries对于我们的示例,查询如下
Delete from
-- Deleting entries based on conditions
Delete from where =
欢迎光临 创意电子 (https://wxcydz.cc/) | Powered by Discuz! X3.4 |