이 문제로 인해 도움을 받으십시오. 나는 'Where 절'에서 '알 수없는 열'the_mother_church_id를 얻습니다. 데이터베이스에서 열 이름의 이름을 여러 번 확인했는데 그 이름이 같은지 확인합니다.데이터베이스의 알 수없는 열 문제
어디에서 문제가 될 수 있습니까?
감사
<?php
$past = mysql_query("SELECT * FROM the_mother_church WHERE the_mother_church_id = '1'") or die(mysql_error());
?>
다시 필드의 이름 표를
CREATE TABLE IF NOT EXISTS `the_mother_church` (
` the_mother_church_id` int(255) NOT NULL,
`the_mother_church_head` varchar(255) NOT NULL,
` the_mother_church_content` varchar(3000) NOT NULL,
` the_mother_church_tags` varchar(255) NOT NULL,
` the_mother_church_created` datetime NOT NULL,
` the_mother_church_image` blob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
당신이 우리에게 CREATE TABLE 문을 표시 할 수 있습니다 :
가 열 이름 바꾸기? NOT은'the_mother_church' ('the_mother_church_id'의 INT (255 있으면 – LeonardChallis
가 NULL NOT) TABLE 만들기 'the_mother_church_head' VARCHAR (255) NOT NULL, 'the_mother_church_content' VARCHAR (3000) NULL NOT, 'the_mother_church_tags' VARCHAR (255) NOT NULL, 'the_mother_church_created' datetime NOT NULL, 'the_mother_church_image' blob이 NULL이 아님 ) ENGINE = InnoDB DEFAULT CHARSET = latin1; –
@ user1365922 : 질문을 수정할 수 있습니까 (태그 바로 아래에있는 '수정'링크를 참조하십시오). 그러면 읽을 수 있도록 대신 그 곳에 붙여 넣을 수 있습니까? – eggyal