Posted On: Feb 22, 2018
WordPress’s query function allows you to execute any SQL query on the WordPress database. It is best used when there is a need for specific, custom, or otherwise complex SQL queries. For more basic queries, such as selecting information from a table, see the other wpdb functions above such as get_results, get_var, get_row or get_col.
Syntax
<?php $wpdb->query('query'); ?>
Read more from https://codex.wordpress.org/Class_Reference/wpdb#Running_General_Queries
Never Miss an Articles from us.
WordPress is a free, open-source CMS written in PHP and licensed under GPL. It enables users to create dynamic websites, from personal blogs to e-commerce sites. The stable version as of October 2020 ..
The first version of WordPress was released in 2003. It has since evolved into a leading open-source CMS, allowing users to create a wide range of websites with ease...
WordPress demands PHP 7+, MySQL 5.6+/MariaDB 10.0+, mod_rewrite Apache module, and HTTPS support (recommended) for peak performance and security...