如何通过SQL中的脚本获取表的模式和数据? [英] How to get the schema and data of a table by a script in SQL ?
本文介绍了如何通过SQL中的脚本获取表的模式和数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过Sql中的脚本获取表的模式和数据?
我想要一个脚本来获取所提供的表的模式和数据。使用任务无法获取脚本 - >生成脚本选项等。既然如此,我想要一个脚本来获取
How to get the schema and data of a table by a script in Sql ?
I want a script to fetch the schema and data of a table provided. It is not possible to take the script using Tasks -> Generate Scripts Option etc. Since it is so, I want a script for fetching
the schema and data of a table provided
我尝试过:
无法使用任务执行脚本 - >生成脚本选项等。既然如此,我想要一个脚本来获取
What I have tried:
It is not possible to take the script using Tasks -> Generate Scripts Option etc. Since it is so, I want a script for fetching
the schema and data of a table provided
推荐答案
正如你所说的任务 - >生成脚本选项等我假设你的意思是MSSQL Server。
本文给出了一种方法使用SQL Server从特定表数据生成插入语句 [ ^ ]
As you have said Tasks -> Generate Scripts Option etc I am assuming you mean MSSQL Server.
This article gives a method for that Generate insert statements from a specific table data using SQL Server[^]
这篇关于如何通过SQL中的脚本获取表的模式和数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文