
Search In
This article explains how to use LIKE operator to get data from MySQL table based on pattern matching. The LIKE operator used with WHERE clause of SELECT, UPDATE and DELETE statement which search for a specified pattern in a column.
In MySQL LIKE op
Magento and WooCommerce are currently the top two frameworks in use for e-commerce websites over the web. Both are backed by strong open-source communities developing plugins for various functionalities a
To return the number of rows in a query,we use COUNT. It counts the numbers of records.
the syntax of SQL COUNT statement.
SELECT COUNT (expression)
FROM tables
WHERE conditions;
SQL SELECT COUNT(column_name)
SELECT COUNT(name) FROM empl
Many times we needs to write static query in Laravel. Some time due to the complexity of the query or sometime due to the MYSQL build in functions not supported in the Query Builder or in Eloquent in Laravel example LPAD. Thus at that time Laravel pr
It is used where ample data is fetched from the query and there are numerous levels of associations between your models.
we use Recursive like this way.
$this->Region->find('all', array('recursive' => 0));
These are levels of Recursive f
Hello Guys,
Some time we need to custom mysql query. If you are looking to write custom mysql query in Wordpress. Please follow the code for the same::
global $wpdb;
$sender_name = $wpdb->get_results("SELECT first_name,last_name FROM sender_deta
There is a requirement to start the background service from the another application where the current services are only installed and not in running state. So I started the service from the another application by using the below code in MainActivity
In this blog, we will learn how we can use foreach in the latest ES6 i.e. ECMAScript 2015. In ES6 the new syntax that we will use to iterate over the elements of array is “for-of”. Hence here we will learn how we can iterate through the e
We might be familiar with the cakephp simple feature which allows us to retrieve and save data in database using find() and save() functions respectively.
But there is an another way of writing forward SQL queries in cakephp through which we can wri
To display percent to total in SQL, we want to leverage the ideas we used for rank/running total plus subquery.
Different from what we saw in the SQL Subquery section, here we want to use the subquery as part of the SELECT.
Name
