[root@localhost:3306] 错误 1146: Table 'factory.1' doesn't exist,打开mysqlcc里的任何一张表都会出现这个错误,我想很多人都出现了这个问题,出现这个问题是不是连手动插数据都不能插了啊,请高手帮忙解决,我在线等,急急急急急!!!!!!!!!!!!!!!!!!!1
什么引擎?表有问题?
引用
什么引擎?表 ......
public void StartCmd(string workingDirectory, string command)
{
Process p = new Process();
p.StartInfo.FileName = @"D:\备份\epet.sql";
p.StartInfo.WorkingDirectory = workingDirectory;
p.StartInfo.UseShellExecute = f ......
有个字段是enum类型的,创建表的时候默认给了几个值
create tb_test(
id bigint,
filed_test enum('aa','bb') DEFAULT NULL;
)
我现在想修改往enum里边增加一个值'cc',请问sql语句怎么写????
alt tb_test modify filed_test enum('aa','bb','cc') DEFAULT NULL;
这样写报错,请大侠指点!
谢谢,我晕了 a ......
表tab3 如果ID大于5,自动改为5,
Create table tab3(id int not null);
Create trigger inser_update_a
Before insert or update on tab3
FOR each ROW
AS BEGIN
IF tab3.id >5
then tab3.id= 5
end if
end ;
上面有错吗, 我运行不出来,报错:
Error Code : 1064
You have an error in y ......
1、是不是PHP中只能使用mysql_query("update user_aa set money=money2-".$bpanmm." where uid=".$userppp);更新数据???
2、PHP更新mysql_fetch_row($res)与mysql_fetch_array($res)中的数据后是不是自动更新到数据库???{{ ......
我的sql语句里面如果参数带'号sql语句就会出错,需要用程序转义后才能插入数据库,但是每个字符串都转义一下又很麻烦,请教有没有简便的方法呢,谢谢大家
没有办法,只能转义
\' 或者 ''
在你的程序中先用程序语言把 ' replace成 '' 或 \'
SQL code:
mysql> select '\'', '''';
+---+---+
| ' | ' |
+---+--- ......