28-Conversion Functions in SQL | Types of SQL Functions| CAST VS CONVERT | STR_TO_DATE | DATE_FORMAT

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 18

  • @Cake-bz5bf
    @Cake-bz5bf Год назад +2

    Hello mam how you doing, just wanted to say pls make a detailed video on nested/subquery of sql as i have been always confused in that. Pls make a video about that from basic to advance.😊

    • @CodeEra2020
      @CodeEra2020  Год назад

      Okay sure. Thank you so much for watching

  • @passportbro904
    @passportbro904 4 месяца назад

    I think for the cast one its better to show the actual decimal point for a better example. ill help you. SELECT CAST(10 AS DECIMAL(5, 2)) AS decimal_value; result = decimal_value
    10.00

  • @kapilrathore3649
    @kapilrathore3649 9 месяцев назад

    thanks for content

  • @manishverma1025
    @manishverma1025 Год назад

    Very nice explanation

  • @ranaprathap8292
    @ranaprathap8292 Год назад

    Please explain the any testing side

  • @hajarigupta121
    @hajarigupta121 2 месяца назад

    Select STR_To_DATE (‘04-06-2023’,’%D-%M-%Y’)

  • @Sairam45269
    @Sairam45269 2 месяца назад

    In Sql server 2019 it is work or not

  • @G.Rajini888
    @G.Rajini888 Год назад

    Mam lexical functions ante entii quickly reply

  • @vipinkathait6070
    @vipinkathait6070 13 дней назад

    SELECT STR_TO_DATE('Sunday 04 June 2023 12:15 (pm)', '%W %d %M %Y %h:%i (%p)') AS formatted_datetime;

  • @vineelsai111
    @vineelsai111 Год назад

    SELECT STR_TO_DATE('04 JUNE 2023 12:15:00','%d %m %Y %H %i') AS new_date; null coming what is wrong

  • @mohamedhizam7398
    @mohamedhizam7398 6 месяцев назад

    Xampp

  • @shoryagupta7786
    @shoryagupta7786 Месяц назад +1

    Hi
    I am trying to convert str as ‘2019-12-24-12:12:34’ to timestamp
    My syntax is select str_to_ date(‘2019-12-24-12:12:34’, “%Y-%M-%D-%h:%i:%s”)
    But i am getting nulls
    Please help me

    • @Santhosh-lt2rp
      @Santhosh-lt2rp Месяц назад

      Yes exactly 😮

    • @vipinkathait6070
      @vipinkathait6070 13 дней назад

      Use format according to string then you will get the right answer - SELECT STR_TO_DATE('Sunday 04 June 2023 12:15 (pm)', '%W %d %M %Y %h:%i (%p)') AS formatted_datetime;