Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the API interface reading method of mysql large data volume sub-table partition?

Shulou Source: shulou.com Published: 2022-06-01 18:09:41 11月23日 Update

This article mainly explains the "mysql large data sub-table partition API interface reading method is what", the article explained the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "mysql large data sub-table partition API interface reading method is what" it!

Public function getData () {global $db, $res;dbc (); / / packet serial number; $jk_sn = "6910001582"; / / current day partition data; $partName = get_param ("partName"); if (empty ($partName)) {/ / $partName = "jk_data" > $partName = "jk_data20201113";} $sql = "select jk_date,jk_time,jk_sn,jk_serialnum from". $db- > table ('data'). "PARTITION." $partName. ") WHERE 1 = 1"; $sql. = "AND jk_sn =". $jk_sn;$sql. = "LIMIT 10"; $row = $db- > queryall ($sql); $res ["data"] = $row;die (json_encode_lockdata ($res));}

Transfer parameters from the front end of API interface

Done!

Thank you for your reading, the above is the content of "what is the API interface reading method of mysql large data sub-table partition". After the study of this article, I believe you have a deeper understanding of what the API interface reading method of mysql large data sub-table partition is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Interfaces data subtables methods learning content front-end that is sequences serial numbers ideas situations articles more knowledge knowledge points articles follow questions grouping Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Xiaomi Huawei Microsoft Shulou Technology