|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sql statement
I have a field called fullname,firstname,and lastname.
Can soemone help me with a sql statement to take fullname and put it into firstname and lastname. (Parse it by the last space) |
|
#2
|
||||
|
||||
|
|
|
#3
|
|||
|
|||
|
sorry. I posted to the wrong forum originally. (I am working in mssql) I thought the code didn't work because of mssql.
I get an error Server: Msg 195, Level 15, State 10, Line 3 'locate' is not a recognized function name. Please advise |
|
#4
|
||||
|
||||
|
replace locate (which is a mysql function) with charindex (which is a sql server function with the same syntax)
everything else stays the same |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > sql statement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|