Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SELECT RIGHT('000000' + CAST([ID] as SYSNAME), 8) ID FROM Table1
上記のクエリは、SQL Server で列を右揃えにし、左にゼロを埋めます。Oracle DBで同等のものを教えてもらえますか?
SELECT LPAD(ID,8,'0') FROM Table1あなたのために働くかもしれません。
SELECT LPAD(ID,8,'0') FROM Table1
Lpadの使用法についてはこれを見てください