DECLARE `var_name` VARCHAR(255) DEFAULT 'value';
      
      
      Sql language logo

      declare variable

      SQL public snippets

      This code declares a variable called "&[USER_INPUT:1:var_name]" to hold an input value of 255 characters. The variable "&[USER_INPUT:2:255]" is then set to the input value.

      Shortcut: s_dec_s

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.