Join Bill Weinman for an in-depth discussion in this video Matching patterns with LIKE, part of PostgreSQL 9 with PHP Essential Training.
Postgres has a couple of extensions to the standard SQL LIKE pattern matching operator.…For example, here using the world database. If we SELECT FROM the City table…WHERE Name LIKE 'Z%' ORDER BY Name, that's the standard usage of the SQL LIKE…operator and it will return rows where the name column begins with capital…letter Z, and so we see there is a bunch of cities that begin with the capital letter Z.…
Now if I change this to a lowercase z and run it again, you see we get no results.…And so in order to have this operator be case insensitive, Postgres has the…extension ILIKE, beginning with a letter I and that makes it case insensitive.…And now you see that we get the same results, as when we have the capital Z…although we are using a lowercase z.…Likewise, if you want to define the records where the second letter was a W, you…could use the underscore which matches one letter in SQL and a w and in this…case I am using a lowercase w, but because I'm using ILIKE, it doesn't matter,…either lowercase or uppercase will work the same.…
- Installing PostgreSQL
- Understanding database architecture
- Inserting, updating, and deleting data in a table
- Creating a database library
- Indexing ID fields
- Storing numbers, text, and Boolean values
- Reading data
- Using casts to force type
- Using mathematical functions
- Concatenating strings
- Working with date and time functions and operators
- Defining CRUD
- Using PHP to insert, read, update, and delete rows in a database
Skill Level Beginner
PHP with MySQL Beyond the Basicswith Kevin Skoglund10h 26m Intermediate
1. Quick Start
2. Creating a Database
3. Data Types
4. Storing and Reading Data
5. SQL Expressions
6. Mathematical Functions and Operators
Using math functions3m 2s
7. String Functions and Operators
8. Date and Time Functions and Operators
9. PHP Interfaces
10. Web Applications
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.