How to Remove “X Rows Selected” in SQLcl & SQL*Plus (Oracle)

When using SQLcl or SQL*Plus with Oracle Database, you may have noticed feedback at the bottom of your query results that tells you how many rows were selected. For example, 100 rows selected (or however many rows were returned).

If you want to get rid of this, you can use SET FEEDBACK OFF.

You also have the option of setting a row threshold, which allows you to specify how many rows should be returned before feedback is provided.

Continue reading

How to Concatenate Strings in SQL

Most of the major RDBMSs provide several options for concatenating two or more strings.

  • There’s the CONCAT() function, which concatenates its arguments.
  • There’s also a CONCAT_WS() that allows you to specify a separator that separates the concatenated strings.
  • And there’s also a string concatenation operator, which allows us to concatenate its operands.

Below are examples of each method.

Continue reading