Skip to content

Instantly share code, notes, and snippets.

@lerosua
Last active December 9, 2015 19:18
Show Gist options
  • Save lerosua/4315488 to your computer and use it in GitHub Desktop.
Save lerosua/4315488 to your computer and use it in GitHub Desktop.
sqlite插入数据示例
查看所有省
select * from Province;
根据省ID查看此省的所有城市
select * from City where ProID="610000";
根据城市ID查看此市所有区
select * from Zone where CityID="610100";
给Zone表插入一个新区,顺序一直按照着表的数据列来。
insert into Zone values("410186","高新区","410100","450001");
@lerosua
Copy link
Author

lerosua commented Jun 15, 2013

delete from Zone where ZoneID="110100";
删除语句

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment