Searching for text in SQL Server: CHARINDEX and PATINDEX

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ม.ค. 2025

ความคิดเห็น • 10

  • @emmanuelphiri2086
    @emmanuelphiri2086 ปีที่แล้ว +4

    In future most will realise how powerful this lesson was and come back to like and comment. Nice one Sir.

  • @sharpazn
    @sharpazn ปีที่แล้ว +3

    Thanks man you're a legend!!!!!!!

  • @neilostle9909
    @neilostle9909 ปีที่แล้ว +1

    Hello. From 1m40s you talk about how to find the 2nd 'e'. How would we find the third 'e' ?

    • @SQLServer101
      @SQLServer101  ปีที่แล้ว

      Hi Neil. Thank you for your question. It's exactly the same way. The final formula would be SELECT CHARINDEX('e', 'Hello there', 1+CHARINDEX('e', 'Hello there',1 + CHARINDEX('e', 'Hello there'))) . Phillip

  • @rk-ej9ep
    @rk-ej9ep 2 ปีที่แล้ว +2

    Nice sir..

  • @CanMont
    @CanMont 3 ปีที่แล้ว +3

    Thank you so much

  • @BelegaerTheGreat
    @BelegaerTheGreat ปีที่แล้ว +2

    *muda muda muda muda muda muda muda muda!*

  • @omotolaniomotayo5812
    @omotolaniomotayo5812 3 ปีที่แล้ว +2

    Nice..

  • @AnshulMarele-gbaa
    @AnshulMarele-gbaa ปีที่แล้ว +1

    How to enable viewing syntax and command definition [while typing any command] in MS-SQL as we see in Excel

    • @SQLServer101
      @SQLServer101  ปีที่แล้ว

      Hi Anshul. Thank you for your question. This happens with functions - if you type SELECT CONVERT( , then as soon as you type ( you should see the syntax for the function CONVERT. However, you won't see it for SELECT - the syntax is too complex to be shown in such an environment. See learn.microsoft.com/en-us/sql/t-sql/queries/select-transact-sql for its syntax. Phillip