Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Sorry, what I meant to ask was "how to rename a column of an on-disk table through ALTER TABLE or some other structure"?
>>What about simply renaming a column?
>>
>>
>>
>>>Basically what I am saying here is:
>>>1) Certain data types (integer, any type field with null) are impossible to create directly in a select statement.
>>>2)But you can create a cursor on the fly that contains a field of the right type. Do a join onto this cursor and you get get fields of the type you could otherwise select.
>
>
>You would have to change the data type as well. The join is faster .
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement