MySQL wild cards are easy

Sdílet
Vložit
  • čas přidán 1. 11. 2022
  • #MySQL #course #tutorial
    % = any amount of random characters
    _ = one single random character
    00:00:00 %
    00:01:55 _
    00:04:00 conclusion
    SELECT * FROM employees
    WHERE first_name LIKE "s%";
    SELECT * FROM employees
    WHERE last_name LIKE "%r";
    SELECT * FROM employees
    WHERE hire_date LIKE "2023%";
    SELECT * FROM employees
    WHERE job LIKE "_ook";
    SELECT * FROM employees
    WHERE hire_date LIKE "____-01-__";
    SELECT * FROM employees
    WHERE job LIKE "_a%";

Komentáře • 11

  • @BroCodez
    @BroCodez  Před rokem +9

    % = any amount of random characters
    _ = one single random character
    SELECT * FROM employees
    WHERE first_name LIKE "s%";
    SELECT * FROM employees
    WHERE last_name LIKE "%r";
    SELECT * FROM employees
    WHERE hire_date LIKE "2023%";
    SELECT * FROM employees
    WHERE job LIKE "_ook";
    SELECT * FROM employees
    WHERE hire_date LIKE "____-01-__";
    SELECT * FROM employees
    WHERE job LIKE "_a%";

    • @BeNetCoders
      @BeNetCoders Před 10 dny

      With "Similar To" you can actually have a range of characters, might be worth having this added into your next video you put out.. 👍
      Select first_name, last_name
      from customer
      where first_name SIMILAR TO '[A-C]%'

  • @victorgutierrez505
    @victorgutierrez505 Před rokem +7

    This guy makes everything so clean... W

  • @lolman6976
    @lolman6976 Před rokem

    hey bro code great video thank you for giving us the best content
    but I have a question what extensions do you use on your ide
    Edit: VS Code sorry not the other IDE you use

  • @quangquyennguyen9390
    @quangquyennguyen9390 Před rokem

    wheel of fortune :)) that wy I like your course bro :))

  • @ironone4438
    @ironone4438 Před měsícem

    Nice

  • @harryboskamp6670
    @harryboskamp6670 Před rokem

    Your last 5 videos aren't visible in my subscription feed. i am subscribed and rang the bell. i only found out that you uploaded any new videos from the home page.

  • @mooners544
    @mooners544 Před rokem

    Heya bro! I was wondering if you could upload your videos to Odysee? There are a ton of coding channels on there and a lot of people who would enjoy your content.

  • @Homosapienin134
    @Homosapienin134 Před 10 měsíci

    2:22 gay/bi boys like myself are you familiar with the term at this timestamp

  • @FactManiacForYou
    @FactManiacForYou Před rokem

    first

  • @OhYuuna
    @OhYuuna Před rokem +1

    Muito obrigada pela ajuda