intTypePromotion=1

Web to py enterprise web framework - p 19

Chia sẻ: Yukogaru Yukogaru | Ngày: | Loại File: PDF | Số trang:10

0
46
lượt xem
3
download

Web to py enterprise web framework - p 19

Mô tả tài liệu
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

QUERY, SET, ROWS 165 4 5 6 Alex Bob Carl With the argument distinct=True, you can specify that you only want to select distinct records. This has the same effect as grouping using all specified fields except that it does not require sorting. When using distinct it is important not to select ALL fields, and in particular not to select the "id" field, else all records will always be distinct. Here is an example: 1 2 3 4 5 for row in db().select(db.person.name, distinct=True): print row.name Alex Bob Carl With limitby, you can select a subset of the records (in this case, the first two starting...

Chủ đề:
Lưu

Nội dung Text: Web to py enterprise web framework - p 19

ADSENSE
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2