Search notes:
SQL Server function: convert
convert
returns the value of an expression in a different
data type.
convert(datatype , expression )
convert(datatype(length), expression )
convert(datatype , expression, style)
Simple example
select
convert(varchar(15), 1.0/3.0 ), -- 0.333333
convert(varchar(15), cast(1.0/3.0 as decimal(15, 12))) -- 0.333333000000
Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78
Stack trace:
#0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array)
#1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1743262606, '18.222.220.80', 'Mozilla/5.0 App...', NULL)
#2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQL-Server/T-SQL/functions/convert/index(53): insert_webrequest()
#3 {main}
thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78