PHP-SQL-class | SQL操作类:基于PDO参考手册 一、

 by   ksust PHP Version: Current License: No License

kandi X-RAY | PHP-SQL-class Summary

kandi X-RAY | PHP-SQL-class Summary

PHP-SQL-class is a PHP library. PHP-SQL-class has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

SQL操作类:基于PDO参考手册 一、 基础: 1. 基于PHP PDO,主文件一个,默认数据库连接在同目录database.php中。 2. 使用:直接上传配置database.php即可使用,初始化M()方法。 二、 初始化和使用: 1. 初始化:$sql=M($tableName[,$conn]);//第一个参数时数据表名,第二个参数时数据库连接信息,默认为空时使用database.php中的连接信息,可参考database.php数组形式直接使用新连接。 2. 连贯操作:使用连贯操作,例如:$sql->where($where)->limit(10,10)->select(); 3. where方法:where($w = array(), $type = array('logic' => '='), $link = "AND");//$w为数据键值对,键为列名;$type为键值比较逻辑关系,默认 $key=$v,即 WHERE $key = $v,$type可写某字段使用逻辑关系,例如 $type = array('id' => '<')则表示WHERE $key < $v;$link表示多条件连接时使用连接关系,默认为AND ,可设 OR。 4. limit方法:limit($start, $length = 100);// 5. find($returnFind = false, $dissql = false)://查找最新一条,一般情况返回true,没有找到返回false;若指明返回找到的行,则返回行(一维) 6. select($dissql = false) //select方法,与where limit连贯使用(二维数组,数据行) 7. insert($data, $dissql = false) //insert方法,单独使用,传入要设置的键值索引数组,没传入的键默认空或者时间,默认返回最新自增id,否则如果插入失败返回false(根据影响行数) 8. update($data, $dissql = false) //必须结合where使用,错误返回false,否则返回影响行数>=1 9. delete($dissql = false) //必须配合where使用,返回删除条数,失败返回false 10. order($orderby='order by id desd') 自写排序 11. setField($field=['*']) 设置查询列.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PHP-SQL-class has a low active ecosystem.
              It has 0 star(s) with 0 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              PHP-SQL-class has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of PHP-SQL-class is current.

            kandi-Quality Quality

              PHP-SQL-class has no bugs reported.

            kandi-Security Security

              PHP-SQL-class has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              PHP-SQL-class does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              PHP-SQL-class releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PHP-SQL-class
            Get all kandi verified functions for this library.

            PHP-SQL-class Key Features

            No Key Features are available at this moment for PHP-SQL-class.

            PHP-SQL-class Examples and Code Snippets

            No Code Snippets are available at this moment for PHP-SQL-class.

            Community Discussions

            No Community Discussions are available at this moment for PHP-SQL-class.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PHP-SQL-class

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ksust/PHP-SQL-class.git

          • CLI

            gh repo clone ksust/PHP-SQL-class

          • sshUrl

            git@github.com:ksust/PHP-SQL-class.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link