mysql版:
delimiter $$
create function sayhello() returns varchar(20)
begin
return 'hello word';
end $$
delimiter ;
結果:
python版:
def sayhello():
print('hello word')
結果:
C版:
# include <stdio.h>
void SayHello() {
printf("hello word");
}
結果:
C++版:
# include <iostream>
using namespace std;
void SayHello() {
cout << 'hello word' << endl;
}
結果: