0

I'm trying to create a permanent subset of a table using

create table copydata (select a.* from tabla a
         left join table b 
         on st_distance(a.point, b.point) <= 10
         and b.x is null) 

this works but builds the table "copydata" as an InnoDB table. I need this to be an ISAM table so I can build the spatial indices. I've tried

create table copydata (select a.* from tablea a
         left join tableb b 
         on st_distance(a.point, b.point) <= 10
         and b.x is null) ENGINE=MyISAM DEFAULT CHARSET=utf8 

but this complains about a syntax error.

What am I missing?

Regards

1 Answer 1

2

Just change the order of the statements:

create table copydata ENGINE=MyISAM DEFAULT CHARSET=utf8 (select a.* from tablea a
         left join tableb b 
         on st_distance(a.point, b.point) <= 10
         and b.x is null) 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.