DEV Community

Clever Cottonmouth
Clever Cottonmouth

Posted on

SQL SERVER

COPY ALL DATA TO NEW TABLE

SELECT a.* INTO newTable
FROM oldTable a;
Enter fullscreen mode Exit fullscreen mode

CAST

CAST(columnName as VARCHAR)
CAST(columnName as INT)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)