I've to pad a string
my table is
PLU( barcode varchar(50),description(50))
and contains:
barcode |description
----------------------
000123456|Potatoes
002222222|Milk
222222222|Coke
i've to do the padding for the barcode
Select barcode,description from PLU
the resultset must be
barcode |description
----------------------
123456 |Potatoes
2222222 |Milk
222222222|Coke
anyone known if there are a function or a stored procedure
my table is
PLU( barcode varchar(50),description(50))
and contains:
barcode |description
----------------------
000123456|Potatoes
002222222|Milk
222222222|Coke
i've to do the padding for the barcode
Select barcode,description from PLU
the resultset must be
barcode |description
----------------------
123456 |Potatoes
2222222 |Milk
222222222|Coke
anyone known if there are a function or a stored procedure