Quantcast
Channel: Visual Basic Tips and Tricks
Viewing all articles
Browse latest Browse all 2212

substring in t sql

$
0
0

Buon giorno a tutti,
in una tabella di Sql Server 2014 ho un colonna che contiene stringhe di questo tipo:

1_100
2_20
11_ABC
X_999
KK_1234

In una select come faccio ad ottenere 2 colonne che contengano rispettivamente i caratteri a sinistra e a destra dell'underscore ????

COLA COLB
1        100
2        20
11      ABC
X        999
KK      1234

Grazie 1000

Beppe



Viewing all articles
Browse latest Browse all 2212