Multiplication (*)
Syntax
value_1 * value_2
Description
If both arguments are numbers, it returns the result by multiplying value_1 by value_2.
If one of the arguments is String and the other is Integer, it returns the string repeated the specified number of times.
Argument types:
value_1—Fractional number | Integer | Stringvalue_2—Fractional number | Integer | String
Return type: Depends on argument types
Examples
2 * 3 = 6
2.1 * 3 = 6.3
"Lorem" * 3 = 'LoremLoremLorem'
3 * "Lorem" = 'LoremLoremLorem'
Data source support
ClickHouse 19.13, Microsoft SQL Server 2017 (14.0), MySQL 5.6, PostgreSQL 9.3.
Previous
Next