How to Insert an Asterisk in MySQL

The asterisk character is a keyword used in MySQL programming, so you must insert an asterisk character using string notation if you wish it to appear in text. This means you must surround the asterisk you want to insert into the database table with apostrophe characters. Use the Script Debugger program to create the function to insert the table information.

Instructions

    • 1

      Click the Windows "Start" button and select "All Programs." Click "MySQL," then click the "Script Debugger" shortcut to open the software.

    • 2

      Click the database name in the main Script Debugger window and then click the "New Query" button. This button starts the MySQL editor to create the insert statement for your tables.

    • 3

      Type the following code to insert an asterisk:

      insert into customers (location) values ('*')

      This example code inserts the asterisk character into the field labeled "location." The table used is "customers." Replace the field and table values to your own table and field names.

    • 4

      Click the "Run" button to run the query on the MySQL server. The information inserts into the database table and a "Success" message returns in the Script Debugger program.

Related Searches:

References

Comments

You May Also Like

  • MySQL Script Tutorial

    Typing SQL statements at the MySQL prompt is time-consuming and error-prone. If you have a long sequence of statements, or statements that...

  • How to Insert a Newline Character in SED

    Sed is a command line editing tool used to modify files automatically in the Unix and Linux operating systems. The syntax is...

  • How to Use an Asterisk in Grammar

    The word "asterisk" is a derivative of the Latin "aster," meaning "star," and hence, the asterisk is a little star. When speaking,...

  • How to Insert Symbols Into Microsoft Word

    Many times in writing we want to use symbols or characters not found on a standard keyboard. With Microsoft Word, you can...

  • How to Solve a Wood Puzzle Asterisk

    The asterisk puzzle is a type of brain teaser in which you are given a bunch of small pieces and have to...

  • How to Use Asterisks

    Insertion marks are asterisks, brackets, diagonal, ellipsis and quotation marks. An asterisk is used when you want to tell the reader to...

  • How to Insert Into a MySQL Database

    Inserting new rows into a MySQL table is accomplished with the INSERT command. For the most part, it will be necessary to...

  • How to Type Asterisk Letters

    An asterisk is meant to denote that there is more information about the information next to the asterisk. For example, you might...

Related Ads

Featured