You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select
-- i,
'000000'+ CONVERT(VARCHAR(8),i) as LZ1,
right('000000' + CONVERT(VARCHAR(8),i),6) as LZ2
from
(select i, format(i,'00####') as X from integers where i between 997 and 1002 ) X
;
I get this as answer:
LZ1
LZ2
997
000997
998
000998
999
000999
1000
001000
1001
001001
1002
001002
after uncommenting the --i i get, a CHANGED value for LZ1:
i
LZ1
LZ2
997
000000997
000997
998
000000998
000998
999
000000999
000999
1000
0000001000
001000
1001
0000001001
001001
1002
0000001002
001002
DBeaver Version
Community Edition 24.1.0
Operating System
Windows 11
Database and driver
Database:
Microsoft SQL Server 2019 (RTM-GDR) (KB5035434) - 15.0.2110.4 (X64) Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 22631: ) (Hypervisor)
Driver: SQL Server 12.4.1.x64
Steps to reproduce
The integers table is like this:
CREATE TABLE test.dbo.integers (
i bigint NOT NULL
CONSTRAINT integers_pk PRIMARY KEY (i)
);
Additional context
No response
The text was updated successfully, but these errors were encountered:
Description
When I have query:
I get this as answer:
after uncommenting the
--i
i get, a CHANGED value for LZ1:DBeaver Version
Community Edition 24.1.0
Operating System
Windows 11
Database and driver
Database:
Microsoft SQL Server 2019 (RTM-GDR) (KB5035434) - 15.0.2110.4 (X64) Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 22631: ) (Hypervisor)
Driver: SQL Server 12.4.1.x64
Steps to reproduce
The
integers
table is like this:Additional context
No response
The text was updated successfully, but these errors were encountered: