The problem of binding multiple d1 in one worker

I created 3 databases and 1 worker, and bound 3 databases in the worker.

The first database inserted data and queried the data normally, but the query on the second or third database never worked properly. Even if I use statements like select * from table, undefined is returned.

I am very sure that there is data in the table, and I can query the data using wrangler d1 execute databse_name --command “SELECT * FROM table”.

Does anyone know why?