Posts Tagged “sql”

MySQL Sorting Persian Data
Introduction: When sorting Persian data in mysql, Persian letters (گ,چ,پ,ژ) are not placed in the right order and they will appear after other letters...
Continue reading
Yii 2.0 rollBack()
In this post I want to talk about rollBack() and how to use this function. What is rollBack()? Imagine you have a table called 'Product' and a table c...
Continue reading
Yii 2.0 db createCommand()
In this post I want to talk about db createCommand() and using it to fetch records instead of find(). So far you have learnt how to use find() and usi...
Continue reading
Yii 2.0 Using Subqueries
In this post I want to show you how to use subqueries in your conditions.
Continue reading
Fetching Records from Database
In this post I want to talk about fetching records from your database using SQL Syntax. As always, let's start with an example. Imagine we have one ta...
Continue reading
Yii 2.0 find (SELECT)
In this post I want to talk about selecting (fetching) records from database. NOTE: When you want to download Yii 2.0, you can see that Yii 2.0 is not...
Continue reading
Pagination, OFFSET, LIMIT
In this post I want to talk about LIMIT and OFFSET and how to use them, to paginate your results when you are developing a website. Let's start with a...
Continue reading
Yii 2.0 Pagination
In this post I want to show you how to use pagination when your are fetching a large amount of data from your database. We all know that showing our u...
Continue reading
Yii 2.0 hasMany
In our last post, you learned how to join two tables using joinWith() and using hasOne when declaring your relation. In this post I want to tell you t...
Continue reading