c++多⾏字符串,可以这么写
c++多⾏字符串,可以这么写:字符串截取第几行
CString s;
s.Format("CREATE TABLE %s(\
[ID] [int] IDENTITY(1,1) NOT NULL,\
[Vendor] [varchar](10) NULL,\
[System] [varchar](4) NULL,\
[FileType] [varchar](20) NULL,\
[VersionID] [int] NULL,\
[BSCNAME] [varchar](64) NULL,\
[RNCID] [int] NULL,\
[BSCFlg] [int] NULL,\
[IsValid] [bit] NULL,\
[VersionInfo] [VARCHAR](50) NULL,\
[Remark] [NVARCHAR](255) NULL,\
PRIMARY KEY CLUSTERED \
(\
[ID] ASC\
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]\
) ON [PRIMARY]", BSCFLG_TBLNAME.c_str());
m_pOdbc->ExecuteSql(s.GetString());
ADDLOG("--------------新建BSCFlg分配表--------------");
使⽤\更好!

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。