![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm brand new to the forum...searching for some help on Sybase. Please bear with me. I'm normally doing Oracle and MSSQL7/2K. So I'm used to being able to create a table on the fly as a SELECT...INTO or CREATE TABLE AS SELECT statements. It sort of amazes me that you have to actually sit down and write a create table script or go through the SybCentral GUI which I consider balky. I'm usually working in databases that are part of delivered apps, and just extending the functionality. In the post "Create table as select" http://tinyurl.com/2nj94 Tom mentioned that you can do a Select Into if the option is turned on for the database. I'm running ASA 8 Ver 8.0.1.3041. I can't find the option. Or in the alternative is there anyway to do a select that will create a script for creating a table? TIA for any assistance! -- jimpen ------------------------------------------------------------------------ Posted via http://www.webservertalk.com ------------------------------------------------------------------------ View this thread: http://www.webservertalk.com/message190125.html |
#3
| |||
| |||
|
|
[b]You use the select a, b, c, etc into tablename from table_in where x = ? If you wish to have an empty table use "where 1 = 2" You can see online manuals at http://sybooks.sybase.com/as.html From the ASE Reference manual on select : |
|
Attachment filename: tbl_build_function.txt Download attachment: http://www.webservertalk.com/attachm...?postid=629117 +---------------------------------------------------------------- |
![]() |
| Thread Tools | |
| Display Modes | |
| |