<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：Sybase自动生成数据库内所有表的DDL语句的存储过程</title>
	<atom:link href="http://www.dbainfo.net/get-table-definition-syntax-sp_gettabledll.htm/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net/get-table-definition-syntax-sp_gettabledll.htm</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Fri, 04 Dec 2020 03:15:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>由：dbainfo</title>
		<link>https://www.dbainfo.net/get-table-definition-syntax-sp_gettabledll.htm#comment-2362</link>
		<dc:creator>dbainfo</dc:creator>
		<pubDate>Mon, 06 Aug 2012 10:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbainfo.net/?p=284#comment-2362</guid>
		<description>恩。 的确如您所说。存储过程sp_gettabledll没有提取表的一些存储属性。以后我会完善一下。</description>
		<content:encoded><![CDATA[<p>恩。 的确如您所说。存储过程sp_gettabledll没有提取表的一些存储属性。以后我会完善一下。</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：heloonghan</title>
		<link>https://www.dbainfo.net/get-table-definition-syntax-sp_gettabledll.htm#comment-2361</link>
		<dc:creator>heloonghan</dc:creator>
		<pubDate>Mon, 06 Aug 2012 10:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbainfo.net/?p=284#comment-2361</guid>
		<description>1&gt; create table t4
2&gt; (id int,
3&gt;  name varchar(10)
4&gt; )
5&gt; lock datarows
6&gt; with exp_row_size=1
7&gt; go

1&gt; insert into t4 values(1,&#039;test&#039;)
2&gt; go
(1 row affected)

1&gt; sp_gettabledll t4
2&gt; go

if exists(select 1 from sysobjects where name = &#039;t4&#039; and type = &#039;U&#039;)
        drop
table dbo.t4
go

create table dbo.t4 (
id         int               not null ,
name       varchar(10)       not null  
) 
lock datarows
on &#039;default&#039;
go
(return status = 0)

如上测试过程，在建立表t4时指定with exp_row_size=1
选项，然后调用存储过程sp_gettabledll，生成的t4的ddl
语句没有with exp_row_size=1 这个部分，使用sybase
central 查看建表ddl是有with exp_row_size=1 这个部分
的，存储过程sp_gettabledll应该完善下</description>
		<content:encoded><![CDATA[<p>1&gt; create table t4<br />
2&gt; (id int,<br />
3&gt;  name varchar(10)<br />
4&gt; )<br />
5&gt; lock datarows<br />
6&gt; with exp_row_size=1<br />
7&gt; go</p>
<p>1&gt; insert into t4 values(1,&#8217;test&#8217;)<br />
2&gt; go<br />
(1 row affected)</p>
<p>1&gt; sp_gettabledll t4<br />
2&gt; go</p>
<p>if exists(select 1 from sysobjects where name = &#8216;t4&#8242; and type = &#8216;U&#8217;)<br />
        drop<br />
table dbo.t4<br />
go</p>
<p>create table dbo.t4 (<br />
id         int               not null ,<br />
name       varchar(10)       not null<br />
)<br />
lock datarows<br />
on &#8216;default&#8217;<br />
go<br />
(return status = 0)</p>
<p>如上测试过程，在建立表t4时指定with exp_row_size=1<br />
选项，然后调用存储过程sp_gettabledll，生成的t4的ddl<br />
语句没有with exp_row_size=1 这个部分，使用sybase<br />
central 查看建表ddl是有with exp_row_size=1 这个部分<br />
的，存储过程sp_gettabledll应该完善下</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Eisen</title>
		<link>https://www.dbainfo.net/get-table-definition-syntax-sp_gettabledll.htm#comment-1586</link>
		<dc:creator>Eisen</dc:creator>
		<pubDate>Fri, 23 Dec 2011 06:44:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbainfo.net/?p=284#comment-1586</guid>
		<description>提点意见：Line 55那里判断table是否存在时，可以写成
where (name = @tblname or user_name(uid)+&#039;.&#039;+name=@tblname) and type = &#039;U&#039; 

这样防止一个库内含有不同user的同名表……</description>
		<content:encoded><![CDATA[<p>提点意见：Line 55那里判断table是否存在时，可以写成<br />
where (name = @tblname or user_name(uid)+&#8217;.'+name=@tblname) and type = &#8216;U&#8217; </p>
<p>这样防止一个库内含有不同user的同名表……</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：dbainfo</title>
		<link>https://www.dbainfo.net/get-table-definition-syntax-sp_gettabledll.htm#comment-1585</link>
		<dc:creator>dbainfo</dc:creator>
		<pubDate>Fri, 23 Dec 2011 03:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbainfo.net/?p=284#comment-1585</guid>
		<description>呵呵，谢谢!</description>
		<content:encoded><![CDATA[<p>呵呵，谢谢!</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Eisen</title>
		<link>https://www.dbainfo.net/get-table-definition-syntax-sp_gettabledll.htm#comment-1584</link>
		<dc:creator>Eisen</dc:creator>
		<pubDate>Fri, 23 Dec 2011 02:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbainfo.net/?p=284#comment-1584</guid>
		<description>这个过程写得非常漂亮，佩服……</description>
		<content:encoded><![CDATA[<p>这个过程写得非常漂亮，佩服……</p>
]]></content:encoded>
	</item>
	<item>
		<title>由：Eisen</title>
		<link>https://www.dbainfo.net/get-table-definition-syntax-sp_gettabledll.htm#comment-1583</link>
		<dc:creator>Eisen</dc:creator>
		<pubDate>Fri, 23 Dec 2011 02:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbainfo.net/?p=284#comment-1583</guid>
		<description>发现了andkylee的老家了，漂亮……</description>
		<content:encoded><![CDATA[<p>发现了andkylee的老家了，漂亮……</p>
]]></content:encoded>
	</item>
</channel>
</rss>
