What does the ( ' > ) symbol mean in the command line in MySQL?

前端 未结 2 1617
天命终不由人
天命终不由人 2021-01-03 08:30

I\'m new to sql and for some reason, the arrow symbol ( -> ) that I am used to seeing in teh command line, which mean it is ready for input, is now displayed as ( \'> ) and

相关标签:
2条回答
  • 2021-01-03 09:17

    It means that it is treating any input which follows as part of a string literal, until it encounters a(n unescaped) string termination quote ' character.

    This will have happened because you previously began the string literal with such a string termination quote character. For example:

    mysql> SELECT foo
        -> FROM   tbl
        -> WHERE  bar LIKE 'somestring
        '> this is still part of somestring'
        -> ;
    
    0 讨论(0)
  • 2021-01-03 09:17

    It means you have an incomplete query. Most likely it's something related to a missing quotation, semi-colon at the end, or parentheses aren't closed.

    0 讨论(0)
提交回复
热议问题