.INC - File Extension for Include Files

Q

What is INC? INC, short name for Include, is used as the file extension for programming source files to be included in other source files. .INC files are text files that can be opened by Notepad or any text editors. See the sample .INC file included below.

✍: FYIcenter.com

A

File Extension: .INC

MIME Type: text/plain

File Content: Include source code

.INC files are Include files, which contain programming source codes to be included other source code files. .INC files are usually in PHP, C/C++, and MySQL programming languages. Here is a sample .INC Include file, innodb-index.inc, for a MySQL test source code:

insert into t1 values (1,1,'ab','ab'),(2,2,'ac','ac'),(3,2,'ad','ad'),
  (4,4,'afe','afe');
commit;
--error ER_DUP_ENTRY
alter table t1 add unique index (b);
insert into t1 values(8,9,'fff','fff');
select * from t1;
show create table t1;
alter table t1 add index (b);
insert into t1 values(10,10,'kkk','iii');
select * from t1;
select * from t1 force index(b) order by b;
explain select * from t1 force index(b) order by b;
show create table t1;
alter table t1 add unique index (c), add index (d);
insert into t1 values(11,11,'aaa','mmm');
select * from t1;
select * from t1 force index(b) order by b;
select * from t1 force index(c) order by c;
select * from t1 force index(d) order by d;
explain select * from t1 force index(b) order by b;
explain select * from t1 force index(c) order by c;
explain select * from t1 force index(d) order by d;
show create table t1;
check table t1;
drop table t1;

.INC Include file sample: Click sample.inc to download.

Since .INC text files are in text format, you can use Notepad or any text editor to create or modify them. No special software is needed.

2012-07-10, 3609👍, 0💬