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;
}
结果: