运行时创建多个表 [英] runtime create multiple table

查看:93
本文介绍了运行时创建多个表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

(这是用于添加新分支)

我想在运行时使用sql表,

我正在创建一些值,例如


名字叫ravi
id为2343
地址为chennai

分支名称为infotech

分支ID为5343
电话号码为9867567654

名称是标签,而ravi是文本框值
....
...
电话号码为标签,文本框值为9867567654



我需要单击提交按钮,然后在同一数据库的infotech中自动创建表,

我的数据库名称是管理系统

hi friends,

(this is for add new branch)

i want sql table in run time,

i am create some values such as


name as ravi
id as 2343
address as chennai

branch name as infotech

branch id as 5343
phone no as 9867567654

name is label and ravi is textbox value
....
...
phone no is label and 9867567654 as textbox value



I need when i click the submit button then automatically create the table in infotech in same database,

My database name is management system

推荐答案

那是一个坏主意-创建表是一件很重要的事情(就数据库的影响而言,如果不是这样的话)代码条款),则不应在用户每次单击按钮时都创建它们.
您确定不是要在表中添加行吗?
That is a bad idea - creating a table is a major thing to do (in terms of effects on the DB, if not in terms of code), you should not be creating them every time the user clicks a button.
Are you sure you don''t mean add a row to a table?


这篇关于运行时创建多个表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆