如何使用名称中的破折号创建数据库? [英] How do you create a database with a dash in the name?

查看:323
本文介绍了如何使用名称中的破折号创建数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据库开发服务器环境中有一个客户端数据库我需要创建,但是客户端名称包含一个短划线 - 。这打击了

试图做什么


创建数据库我的网站;


我怎么创建这个数据库很简单吗?


Thanx

Phil

解决方案

在2004年1月29日星期四09:54:11 -0800,Phil Powell写道:

我在我需要创建的db dev服务器环境中有一个客户端数据库,
但客户名称包含短划线 - 。在尝试创建数据库my-site时会出现这种情况;

如何创建这个数据库,这很简单?

Thanx
Phil




需要更多信息:


您使用的数据库服务器是什么? (假设MySQL但你永远不知道......)


-

Jeffrey D. Silverman | jeffrey AT jhu DOT edu

网站| http://www.wse.jhu.edu/newtnotes/ < Phil Blockell写道:

我的db dev服务器环境中有一个客户端数据库,我需要创建,但客户名称包含短划线 - 。尝试这样做会爆炸

创建数据库my-site;




如果您使用的是MySQL,请使用:< br $>
创建数据库`my-site`;


-

Justin Koivisto - sp ** @ koivi.com

PHP海报:请使用comp.lang.php获取与PHP相关的问题,

alt。不建议使用php *群组。

官方Google SERP SEO竞赛: http://www.koivi.com/serps.php


2004年1月29日星期四09:54:11 -0800,Phil Powell写道:

我在我需要创建的db dev服务器环境中有一个客户端数据库,
但是客户端名称包含一个短划线 - 。在尝试创建数据库my-site时会出现这种情况;

如何创建这个数据库,这很简单?

Thanx
Phil




需要更多信息:


您使用的数据库服务器是什么? (假设MySQL但你永远不知道......)


-

Jeffrey D. Silverman | jeffrey AT jhu DOT edu

网站| http://www.wse.jhu.edu/newtnotes/


I have a client database in my db dev server environment I need to
create, but the client name contains a dash "-". This blows up upon
attempting to do

create database my-site;

How then do I create this database, simple as that?

Thanx
Phil

解决方案

On Thu, 29 Jan 2004 09:54:11 -0800, Phil Powell wrote:

I have a client database in my db dev server environment I need to create,
but the client name contains a dash "-". This blows up upon attempting to
do

create database my-site;

How then do I create this database, simple as that?

Thanx
Phil



More information needed:

What database server are you using? (Assuming MySQL but you never know...)

--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Website | http://www.wse.jhu.edu/newtnotes/


Phil Powell wrote:

I have a client database in my db dev server environment I need to
create, but the client name contains a dash "-". This blows up upon
attempting to do

create database my-site;



If you are using MySQL, use:
create database `my-site`;

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Official Google SERPs SEO Competition: http://www.koivi.com/serps.php


On Thu, 29 Jan 2004 09:54:11 -0800, Phil Powell wrote:

I have a client database in my db dev server environment I need to create,
but the client name contains a dash "-". This blows up upon attempting to
do

create database my-site;

How then do I create this database, simple as that?

Thanx
Phil



More information needed:

What database server are you using? (Assuming MySQL but you never know...)

--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Website | http://www.wse.jhu.edu/newtnotes/


这篇关于如何使用名称中的破折号创建数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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